mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-09 13:14:30 +00:00
morphshape animation fix
This commit is contained in:
@@ -688,10 +688,9 @@ public final class ImagePanel extends JPanel implements ActionListener, MediaDis
|
||||
int frameCount = timelined.getTimeline().getFrameCount();
|
||||
int newframe;
|
||||
if (frameCount > 0) {
|
||||
if (frame + 1 >= frameCount && !loop) {
|
||||
newframe = frame;
|
||||
} else {
|
||||
newframe = (frame + 1) % frameCount;
|
||||
newframe = (frame + 1) % frameCount;
|
||||
if (newframe == 0 && !loop) {
|
||||
stop();
|
||||
}
|
||||
} else {
|
||||
newframe = frame;
|
||||
|
||||
Reference in New Issue
Block a user