We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0259c39 commit 4be2ba8Copy full SHA for 4be2ba8
1 file changed
core/src/main/java/oxy/bascenario/screens/renderer/element/SpriteRenderer.java
@@ -88,14 +88,14 @@ protected void render(ScenarioScreen screen) {
88
return;
89
}
90
91
- try {
92
- this.queueAnimations.forEach(animation -> {
93
- stateData.setDefaultMix(animation.duration);
+ this.queueAnimations.forEach(animation -> {
+ try {
94
state.setAnimation(animation.index, animation.animation, animation.loop);
95
- });
96
- this.queueAnimations.clear();
97
- } catch (Exception ignored) {
98
- }
+ stateData.setDefaultMix(animation.duration);
+ } catch (Exception ignored) {
+ }
+ });
+ this.queueAnimations.clear();
99
100
ThinGLUtils.end(); // Hacky, but we need to stop thingl rendering then start again later to avoid conflicts...
101
0 commit comments