[Bug]: m-model animation fails to start playing immediately once switchin anim-enabled
to true.
#169
Labels
bug
Something isn't working
anim-enabled
to true.
#169
Describe the bug
Setting a valid
anim
attribute for anm-model
with the attributeanim-enabled
tofalse
, to later on setanim-enabled
totrue
, andanim-start-time
to the current document time, doesn't work to start playing the animation immediately. Instead, the animation only plays when the page is refreshed.m-model-anim.mp4
Expected behavior
Presumably the animation should start playing as soon the
anim-enabled
attribute is set totrue
and theanim-start-time
attribute is set to the current document time.How to reproduce the bug
m-model
with a proper asset and URL for theanim
attribute, but setanim-enabled
tofalse
, and then append it to the document;m-model
anim-enabled
attribute totrue
,anim-loop
totrue
,anim-start-time
todocument.timeline.currentTime
, and remove the attributeanim-pause-time
.The animation should start based on the animation clips present in the asset passed as a URL to the
anim
attribute. Instead, it doesn't. However, if the user refresh the page, the animation will be playing.Link to the code that reproduces this bug
https://github.com/TheCodeTherapy/3d-web-experience/blob/382e4e9e546b13fe0d36d3cd8d2a04a17b16460c/example/multi-user-3d-web-experience/server/mml-documents/example-cars.html
Packages
mml-web
Package versions
0.14.0
Extra details
No response
The text was updated successfully, but these errors were encountered: