瀏覽代碼

Fix small bug in crossFade animation example (#24287)

* fix small bug

* fix tabs instead of spaces

* fix idle action

* Update webgl_animation_skinning_additive_blending.html

Co-authored-by: Michael Herzog <[email protected]>
Damjan Pavlica 3 年之前
父節點
當前提交
4888a8f569
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      examples/webgl_animation_skinning_additive_blending.html

+ 5 - 1
examples/webgl_animation_skinning_additive_blending.html

@@ -203,7 +203,11 @@
 						const currentAction = currentSettings ? currentSettings.action : null;
 						const currentAction = currentSettings ? currentSettings.action : null;
 						const action = settings ? settings.action : null;
 						const action = settings ? settings.action : null;
 
 
-						prepareCrossFade( currentAction, action, 0.35 );
+						if ( currentAction !== action ) { 
+						
+							prepareCrossFade( currentAction, action, 0.35 );
+						
+						}
 
 
 					};
 					};