测试这个模型(http://www.creativecrash.com/downloads/3d-motion-data-files/c/happywalk)时发现的bug。
解决方法:
void ObjTranslator::recFindTransformDAGNodes( MString& nodeName, MIntArray& transformNodeIndicesArray )
里的
MString cmdStr = "listRelatives -ap " + nodeName;
改为:MString cmdStr = "listRelatives -ap -fullPath " + nodeName;
转载请注明出处