mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
fixes cubes animation with joint-scale named nodes
This commit is contained in:
parent
192e70d365
commit
835edb8b4a
@ -365,9 +365,12 @@ set_parentJoint(SAA_Scene *scene, SoftNodeDesc *lastJoint) {
|
|||||||
lastJoint = this;
|
lastJoint = this;
|
||||||
}
|
}
|
||||||
if ( _parentJoint && strstr( _parentJoint->get_name().c_str(), "scale" ) != NULL ) {
|
if ( _parentJoint && strstr( _parentJoint->get_name().c_str(), "scale" ) != NULL ) {
|
||||||
_parentJoint = NULL;
|
// make sure _parentJoint didn't have the name "joint" in it
|
||||||
// _parentJoint = lastJoint = NULL;
|
if (strstr(_parentJoint->get_name().c_str(), "joint") == NULL) {
|
||||||
softegg_cat.spam() << "scale joint flag set!\n";
|
_parentJoint = NULL;
|
||||||
|
// _parentJoint = lastJoint = NULL;
|
||||||
|
softegg_cat.spam() << "scale joint flag set!\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// look in the children
|
// look in the children
|
||||||
|
Loading…
x
Reference in New Issue
Block a user