Skip to content

Commit f5f1d73

Browse files
committed
Fixed: Not reseting timeline after shape tag type conversion
1 parent c978401 commit f5f1d73

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ All notable changes to this project will be documented in this file.
2020
- Drawing points and shape paths highlighting did not respect UI scale factor
2121
- [#2416] FLA export - shape fixing in some cases
2222
- [#2394] FLA export - shape tweens in some cases
23+
- Not reseting timeline after shape tag type conversion
2324

2425
## [22.0.2] - 2025-01-17
2526
### Added

libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/converters/ShapeTypeConverter.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import com.jpexs.decompiler.flash.tags.DefineShapeTag;
2424
import com.jpexs.decompiler.flash.tags.base.CharacterTag;
2525
import com.jpexs.decompiler.flash.tags.base.ShapeTag;
26+
import com.jpexs.decompiler.flash.timeline.Timelined;
2627
import com.jpexs.decompiler.flash.types.shaperecords.SHAPERECORD;
2728
import com.jpexs.decompiler.flash.types.shaperecords.StyleChangeRecord;
2829
import com.jpexs.helpers.Helper;
@@ -92,14 +93,16 @@ public void convertCharacter(SWF swf, int characterId, int targetShapeNum) {
9293
if (targetShapeNum == sh.getShapeNum()) {
9394
return;
9495
}
96+
Timelined tim = sh.getTimelined();
9597
ShapeTag converted = convertTagType(sh, swf, targetShapeNum);
9698
converted.setCharacterId(characterId);
9799
swf.replaceTag(ct, converted);
98-
converted.setTimelined(swf);
100+
converted.setTimelined(tim);
99101
swf.updateCharacters();
100102
swf.clearShapeCache();
101103
swf.assignClassesToSymbols();
102104
swf.assignExportNamesToSymbols();
105+
tim.resetTimeline();
103106
}
104107

105108
/**

0 commit comments

Comments
 (0)