|
@@ -173,7 +173,7 @@ class Animation {
|
|
var joint = hxd.impl.Api.downcast(obj, h3d.scene.Skin.Joint);
|
|
var joint = hxd.impl.Api.downcast(obj, h3d.scene.Skin.Joint);
|
|
if( joint != null ) {
|
|
if( joint != null ) {
|
|
currentSkin = cast joint.parent;
|
|
currentSkin = cast joint.parent;
|
|
- a.targetSkin = currentSkin;
|
|
|
|
|
|
+ a.targetSkin = currentSkin != null ? currentSkin : joint.skin;
|
|
a.targetJoint = joint.index;
|
|
a.targetJoint = joint.index;
|
|
} else {
|
|
} else {
|
|
a.targetObject = obj;
|
|
a.targetObject = obj;
|