浏览代码

Bypass animation binding optimization with joint parent set to null.

clementlandrin 2 年之前
父节点
当前提交
85d2d2ae03
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/anim/Animation.hx

+ 1 - 1
h3d/anim/Animation.hx

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