mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 19:40:52 +00:00
various small fixes
This commit is contained in:
@@ -159,6 +159,19 @@ public class Timeline {
|
||||
return frames.size();
|
||||
}
|
||||
|
||||
public int getRealFrameCount() {
|
||||
ensureInitialized();
|
||||
|
||||
int cnt = 1;
|
||||
for (int i = 1; i < frames.size(); i++) {
|
||||
if (frames.get(i).layersChanged) {
|
||||
cnt++;
|
||||
}
|
||||
}
|
||||
|
||||
return cnt;
|
||||
}
|
||||
|
||||
public int getFrameForAction(ASMSource asm) {
|
||||
Integer frame = actionFrames.get(asm);
|
||||
if (frame == null) {
|
||||
|
||||
Reference in New Issue
Block a user