Add frames beyond SWF framecount

This commit is contained in:
Jindra Petřík
2024-10-09 21:32:03 +02:00
parent 990cc03080
commit 9bc487c5de
3 changed files with 123 additions and 35 deletions

View File

@@ -234,6 +234,20 @@ public class Timeline {
}
return frames.get(index);
}
/**
* Gets depth state at specified frame and depth
* @param frame Frame
* @param depth Depth
* @return DepthState or null if it does not exist or frame does not exist
*/
public synchronized DepthState getDepthState(int frame, int depth) {
Frame fr = getFrame(frame);
if (fr == null) {
return null;
}
return fr.layers.get(depth);
}
/**
* Adds a frame.