Exporter Fix
This commit is contained in:
+1
-1
Submodule assets updated: 068fbb2d20...7577819337
@@ -47,13 +47,24 @@ bool Export::Meshes(std::string pathName, bool selectedOnly)
|
|||||||
|
|
||||||
for (unsigned int i = 0; i < connections.length(); i++) {
|
for (unsigned int i = 0; i < connections.length(); i++) {
|
||||||
if (connections[i].node().apiType() == MFn::kSkinClusterFilter) {
|
if (connections[i].node().apiType() == MFn::kSkinClusterFilter) {
|
||||||
MGlobal::select(shape.parent(i), MGlobal::kReplaceList);
|
shape.parent(0, &status);
|
||||||
MGlobal::displayInfo(MString() + "Moving " + thisNode.name() + " to bindPose.");
|
if (status != MS::kSuccess) {
|
||||||
|
MGlobal::displayError(MString() + "shape.parent(0, &status) failed with: " + status.errorString());
|
||||||
|
}
|
||||||
|
status = MGlobal::select(shape.parent(0), MGlobal::kReplaceList);
|
||||||
|
if (status != MS::kSuccess) {
|
||||||
|
MGlobal::displayError(MString() + "Parent to " + thisNode.name() + " failed");
|
||||||
|
}
|
||||||
|
|
||||||
|
MFnDependencyNode tmp(shape.parent(0));
|
||||||
|
MGlobal::displayInfo(MString() + "Moving " + tmp.name() + " to bindPose.");
|
||||||
|
|
||||||
status = MGlobal::executeCommand("GoToBindPose;");
|
status = MGlobal::executeCommand("GoToBindPose;");
|
||||||
if (status != MS::kSuccess) {
|
if (status != MS::kSuccess) {
|
||||||
MGlobal::displayError(MString() + "GoToBindPose: " + status.errorString());
|
MGlobal::displayError(MString() + "GoToBindPose: " + status.errorString());
|
||||||
}
|
}
|
||||||
MGlobal::displayInfo(MString() + "Has moved " + thisNode.name() + " to bindPose.");
|
|
||||||
|
MGlobal::displayInfo(MString() + "Has moved " + tmp.name() + " to bindPose.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user