瀏覽代碼

fix SmoothTransition crash when duplicate names exist in joints

trethaller 3 年之前
父節點
當前提交
192e12b01f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      h3d/anim/SmoothTransition.hx

+ 2 - 1
h3d/anim/SmoothTransition.hx

@@ -58,7 +58,8 @@ class SmoothTransition extends Transition {
 			}
 			so.isAnim2 = true;
 		}
-		for( so in allObjects ) {
+		for( o in objects ) {
+			var so : SmoothedObject = cast o;
 			if( so.isAnim1 && so.isAnim2 )
 				continue;
 			if( so.targetSkin != null ) {