mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 23:10:46 +00:00
command line help fix, show dependet character ids in basic tag info
This commit is contained in:
@@ -117,6 +117,7 @@ public class Timeline {
|
||||
ensureInitialized();
|
||||
frames.add(frame);
|
||||
maxDepth = getMaxDepthInternal();
|
||||
calculateMaxDepthFrames();
|
||||
}
|
||||
|
||||
public AS2Package getAS2RootPackage() {
|
||||
@@ -343,14 +344,7 @@ public class Timeline {
|
||||
|
||||
// todo: enable again after TweenDetector.detectRanges implemented
|
||||
//detectTweens();
|
||||
for (int d = 1; d <= maxDepth; d++) {
|
||||
for (int f = frames.size() - 1; f >= 0; f--) {
|
||||
if (frames.get(f).layers.get(d) != null) {
|
||||
depthMaxFrame.put(d, f + 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
calculateMaxDepthFrames();
|
||||
|
||||
createASPackages();
|
||||
if (parentTag == null) {
|
||||
@@ -397,6 +391,18 @@ public class Timeline {
|
||||
}
|
||||
}
|
||||
|
||||
private void calculateMaxDepthFrames() {
|
||||
depthMaxFrame.clear();
|
||||
for (int d = 1; d <= maxDepth; d++) {
|
||||
for (int f = frames.size() - 1; f >= 0; f--) {
|
||||
if (frames.get(f).layers.get(d) != null) {
|
||||
depthMaxFrame.put(d, f + 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void createASPackages() {
|
||||
for (ASMSource asm : asmSources) {
|
||||
if (asm instanceof DoInitActionTag) {
|
||||
|
||||
Reference in New Issue
Block a user