mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-15 08:01:53 +00:00
Fixed Refreshing parent tags and/or timelines on raw editor save
This commit is contained in:
@@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
|
||||
- Working with byte ranges - caused problems when cloning tags
|
||||
- All "mapped" tags have character id in parenthesis in the tag tree
|
||||
- Raw editor now checks whether field value can be placed inside this kind of tag
|
||||
- Refreshing parent tags and/or timelines on raw editor save
|
||||
|
||||
## [16.0.1] - 2022-10-31
|
||||
### Added
|
||||
|
||||
@@ -31,6 +31,9 @@ import com.jpexs.decompiler.flash.gui.tagtree.AbstractTagTree;
|
||||
import com.jpexs.decompiler.flash.gui.tagtree.TagTree;
|
||||
import com.jpexs.decompiler.flash.tags.Tag;
|
||||
import com.jpexs.decompiler.flash.tags.base.ASMSource;
|
||||
import com.jpexs.decompiler.flash.tags.base.CharacterIdTag;
|
||||
import com.jpexs.decompiler.flash.tags.base.CharacterTag;
|
||||
import com.jpexs.decompiler.flash.timeline.Timelined;
|
||||
import com.jpexs.decompiler.flash.types.ARGB;
|
||||
import com.jpexs.decompiler.flash.types.BasicType;
|
||||
import com.jpexs.decompiler.flash.types.CLIPACTIONRECORD;
|
||||
@@ -1017,6 +1020,16 @@ public class GenericTagTreePanel extends GenericTagPanel {
|
||||
assignTag(tag, editedTag);
|
||||
tag.setModified(true);
|
||||
tag.setSwf(swf);
|
||||
if (tag instanceof Timelined) {
|
||||
((Timelined)tag).resetTimeline();
|
||||
}
|
||||
//For example DefineButton and its DefineButtonCxForm
|
||||
if ((tag instanceof CharacterIdTag) && (!(tag instanceof CharacterTag))) {
|
||||
CharacterTag parentCharacter = swf.getCharacter(((CharacterIdTag)tag).getCharacterId());
|
||||
if (parentCharacter instanceof Timelined) {
|
||||
((Timelined)parentCharacter).resetTimeline();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user