Ver código fonte

Bypass animation binding optimization with joint parent set to null.

clementlandrin 2 anos atrás
pai
commit
85d2d2ae03
1 arquivos alterados com 1 adições e 1 exclusões
  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;