command line help fix, show dependet character ids in basic tag info

This commit is contained in:
2015-07-26 09:58:19 +02:00
parent e1c6138db9
commit c9f1f45ed5
5 changed files with 101 additions and 26 deletions
@@ -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) {