Commit c7622c3 1 parent 71f7b59 commit c7622c3 Copy full SHA for c7622c3
File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -334,8 +334,7 @@ namespace gdjs {
334
334
if ( ! this . _action ) {
335
335
return true ;
336
336
}
337
- // If this animation is looping, we dont want it to be able to send "true" as it must be endless.
338
- return ! this . _action . isRunning ( ) && ! this . _action . loop ;
337
+ return ! this . _action . isRunning ( ) ;
339
338
}
340
339
341
340
animationPaused ( ) {
@@ -373,11 +372,9 @@ namespace gdjs {
373
372
const previousAction = this . _action ;
374
373
this . _action = this . _animationMixer . clipAction ( clip ) ;
375
374
376
- // The action must be reset before being reconfigurated with enabled and setLoop to prevent previous action parameters causing problems
377
- this . _action . stop ( ) ;
378
-
379
- // This is absolutely required for the good functioning of animation crossfading
380
- this . _action . enabled = true ;
375
+ // The action must be reset before being reconfigurated with enabled and setLoop to prevent previous action parameters causing problems
376
+ // such as animations not playing (not sure to which extends it can cause problems nor the origin of these problems)
377
+ this . _action . reset ( ) ;
381
378
this . _action . setLoop (
382
379
shouldLoop ? THREE . LoopRepeat : THREE . LoopOnce ,
383
380
Number . POSITIVE_INFINITY
You can’t perform that action at this time.
0 commit comments