Skip to content

Commit 4be2ba8

Browse files
committed
Don't let 1 missing animation breaks everything else.
1 parent 0259c39 commit 4be2ba8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

core/src/main/java/oxy/bascenario/screens/renderer/element/SpriteRenderer.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ protected void render(ScenarioScreen screen) {
8888
return;
8989
}
9090

91-
try {
92-
this.queueAnimations.forEach(animation -> {
93-
stateData.setDefaultMix(animation.duration);
91+
this.queueAnimations.forEach(animation -> {
92+
try {
9493
state.setAnimation(animation.index, animation.animation, animation.loop);
95-
});
96-
this.queueAnimations.clear();
97-
} catch (Exception ignored) {
98-
}
94+
stateData.setDefaultMix(animation.duration);
95+
} catch (Exception ignored) {
96+
}
97+
});
98+
this.queueAnimations.clear();
9999

100100
ThinGLUtils.end(); // Hacky, but we need to stop thingl rendering then start again later to avoid conflicts...
101101

0 commit comments

Comments
 (0)