various small fixes

This commit is contained in:
2015-04-25 20:21:10 +02:00
parent 2900dd90e0
commit e700f91bf7
8 changed files with 59 additions and 28 deletions
@@ -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) {