Character tag removing simplified/fixed

This commit is contained in:
2016-12-13 12:46:53 +01:00
parent b7ab24b0a5
commit a44221b363
7 changed files with 43 additions and 42 deletions
@@ -1362,7 +1362,6 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
fpsShouldBe = timeline.frameRate;
fpsIs = fpsShouldBe;
scheduleTask(singleFrame, 0);
}
@Override
@@ -796,7 +796,7 @@ public class PreviewPanel extends JPersistentSplitPane implements TagEditorPanel
if (treeItem instanceof DefineSpriteTag) {
isSprite = true;
}
int chtId = 0;
int chtId = -1;
if (treeItem instanceof CharacterTag) {
chtId = ((CharacterTag) treeItem).getCharacterId();
}
@@ -1068,7 +1068,7 @@ public class PreviewPanel extends JPersistentSplitPane implements TagEditorPanel
for (VideoFrameTag f : frs) {
if (!first) {
ratio++;
new PlaceObject2Tag(swf, true, 1, 0, null, null, ratio, null, -1, null).writeTag(sos2);
new PlaceObject2Tag(swf, true, 1, -1, null, null, ratio, null, -1, null).writeTag(sos2);
}
f.writeTag(sos2);
new ShowFrameTag(swf).writeTag(sos2);