brianzinn Posted May 15, 2017 Share Posted May 15, 2017 (edited) Not sure this is a bug, but why would I only in some cases need to clear the animations array? I have created a PG to repro: http://www.babylonjs-playground.com/#7F54UH#4 (see line 151) Basically the yellow box keeps replaying the 'position.z' animation, while the orange box that has the animations cleared is working as intended. If this is a confirmed bug, I am happy to try to create a PR. I am expecting in the callback on animation completion to have the 'position.z' animation removed (or only played once). cheers. Edited May 15, 2017 by brianzinn PG link was a version off Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 29, 2017 Share Posted May 29, 2017 Hey! this is expected as scene.beginAnimation plays ALL animations of the target. So if you leave some animations inside mesh.animations, they will be played as well Does it make sense? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.