mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 01:40:47 +00:00
better detecting single frame sprites
This commit is contained in:
@@ -42,6 +42,7 @@ public class Frame implements TreeItem {
|
||||
public List<DoActionTag> actions = new ArrayList<>();
|
||||
public List<Tag> innerTags = new ArrayList<>();
|
||||
public ShowFrameTag showFrameTag = null; // can be null for the last frame
|
||||
public boolean layersChanged;
|
||||
|
||||
public Frame(Timeline timeline, int frame) {
|
||||
this.timeline = timeline;
|
||||
|
||||
@@ -153,6 +153,7 @@ public class Timeline {
|
||||
private void initialize() {
|
||||
int frameIdx = 0;
|
||||
Frame frame = new Frame(this, frameIdx++);
|
||||
frame.layersChanged = true;
|
||||
boolean tagAdded = false;
|
||||
for (Tag t : tags) {
|
||||
tagAdded = true;
|
||||
@@ -171,6 +172,7 @@ public class Timeline {
|
||||
if (!frame.layers.containsKey(depth)) {
|
||||
frame.layers.put(depth, new DepthState(swf, frame));
|
||||
}
|
||||
frame.layersChanged = true;
|
||||
DepthState fl = frame.layers.get(depth);
|
||||
int characterId = po.getCharacterId();
|
||||
if (characterId != -1) {
|
||||
@@ -229,6 +231,7 @@ public class Timeline {
|
||||
RemoveTag r = (RemoveTag) t;
|
||||
int depth = r.getDepth();
|
||||
frame.layers.remove(depth);
|
||||
frame.layersChanged = true;
|
||||
} else if (t instanceof DoActionTag) {
|
||||
frame.actions.add((DoActionTag) t);
|
||||
actionFrames.put((DoActionTag) t, frame.frame);
|
||||
|
||||
Reference in New Issue
Block a user