fixes cubes animation with joint-scale named nodes

This commit is contained in:
Asad M. Zaman 2003-12-10 00:41:30 +00:00
parent 192e70d365
commit 835edb8b4a

View File

@ -365,10 +365,13 @@ set_parentJoint(SAA_Scene *scene, SoftNodeDesc *lastJoint) {
lastJoint = this;
}
if ( _parentJoint && strstr( _parentJoint->get_name().c_str(), "scale" ) != NULL ) {
// make sure _parentJoint didn't have the name "joint" in it
if (strstr(_parentJoint->get_name().c_str(), "joint") == NULL) {
_parentJoint = NULL;
// _parentJoint = lastJoint = NULL;
softegg_cat.spam() << "scale joint flag set!\n";
}
}
// look in the children
Children::const_iterator ci;