First animations in a dialog are not played when model isn't loaded yet
Ellypse opened this issue ยท 1 comments
For some dialogs, the models are not loaded when we play the first animations of the dialog. This is because the OnAnimFinished script is executed instantly when the model is not here to play the animations (so the animations are played but instantly).
To fix this, I should change how we handle the OnModelLoaded event (we have one callback for now) to instead use promises (from Ellyb) to make sure any code in the add-on that needs the model to be loaded can use the promise to execute the code then.