Commit c42a7ee8 authored by Mike Kremer's avatar Mike Kremer

Don't remove skin weights if computation is not desired after extraction.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13254 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 81fc13f0
......@@ -830,14 +830,6 @@ void SkeletalAnimationPlugin::attachSkin(BaseObjectData* _skin, BaseObjectData*
if (ret == QMessageBox::Yes)
RPC::callFunction("skinningplugin", "computeSkinWeights");
else
if(_skin->dataType(DATA_TRIANGLE_MESH)){
PluginFunctions::triMesh(_skin)->get_property_handle(propWeights, SKIN_WEIGHTS_PROP);
PluginFunctions::triMesh(_skin)->remove_property(propWeights);
}else if(_skin->dataType(DATA_POLY_MESH)){
PluginFunctions::polyMesh(_skin)->get_property_handle(propWeights, SKIN_WEIGHTS_PROP);
PluginFunctions::polyMesh(_skin)->remove_property(propWeights);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment