Fixed: Not reseting timeline after shape tag type conversion

This commit is contained in:
Jindra Petřík
2025-04-19 17:07:58 +02:00
parent c9784011e2
commit f5f1d73b92
2 changed files with 5 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ import com.jpexs.decompiler.flash.tags.DefineShape4Tag;
import com.jpexs.decompiler.flash.tags.DefineShapeTag;
import com.jpexs.decompiler.flash.tags.base.CharacterTag;
import com.jpexs.decompiler.flash.tags.base.ShapeTag;
import com.jpexs.decompiler.flash.timeline.Timelined;
import com.jpexs.decompiler.flash.types.shaperecords.SHAPERECORD;
import com.jpexs.decompiler.flash.types.shaperecords.StyleChangeRecord;
import com.jpexs.helpers.Helper;
@@ -92,14 +93,16 @@ public class ShapeTypeConverter {
if (targetShapeNum == sh.getShapeNum()) {
return;
}
Timelined tim = sh.getTimelined();
ShapeTag converted = convertTagType(sh, swf, targetShapeNum);
converted.setCharacterId(characterId);
swf.replaceTag(ct, converted);
converted.setTimelined(swf);
converted.setTimelined(tim);
swf.updateCharacters();
swf.clearShapeCache();
swf.assignClassesToSymbols();
swf.assignExportNamesToSymbols();
tim.resetTimeline();
}
/**