Browse Source

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 years ago
parent
commit
4888a8f569
1 changed files with 5 additions and 1 deletions
  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 action = settings ? settings.action : null;
 
-						prepareCrossFade( currentAction, action, 0.35 );
+						if ( currentAction !== action ) { 
+						
+							prepareCrossFade( currentAction, action, 0.35 );
+						
+						}
 
 					};