mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 20:50:46 +00:00
Fixed Clearing shape export cache on changes
This commit is contained in:
@@ -3616,6 +3616,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
setTagTreeSelectedNode(getCurrentTree(), newTag);
|
||||
}
|
||||
swf.clearImageCache();
|
||||
swf.clearShapeCache();
|
||||
} catch (IOException ex) {
|
||||
logger.log(Level.SEVERE, "Invalid image", ex);
|
||||
ViewMessages.showMessageDialog(this, translate("error.image.invalid"), translate("error"), JOptionPane.ERROR_MESSAGE);
|
||||
@@ -3644,6 +3645,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
}
|
||||
|
||||
swf.clearImageCache();
|
||||
swf.clearShapeCache();
|
||||
} catch (IOException ex) {
|
||||
logger.log(Level.SEVERE, "Invalid image", ex);
|
||||
ViewMessages.showMessageDialog(MainPanel.this, translate("error.image.invalid"), translate("error"), JOptionPane.ERROR_MESSAGE);
|
||||
@@ -3699,6 +3701,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
}
|
||||
|
||||
swf.clearImageCache();
|
||||
swf.clearShapeCache();
|
||||
} catch (IOException ex) {
|
||||
logger.log(Level.SEVERE, "Invalid image", ex);
|
||||
ViewMessages.showMessageDialog(this, translate("error.image.invalid"), translate("error"), JOptionPane.ERROR_MESSAGE);
|
||||
@@ -3729,6 +3732,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
new ImageImporter().importImageAlpha(it, data);
|
||||
SWF swf = it.getSwf();
|
||||
swf.clearImageCache();
|
||||
swf.clearShapeCache();
|
||||
} catch (IOException ex) {
|
||||
logger.log(Level.SEVERE, "Invalid alpha channel data", ex);
|
||||
ViewMessages.showMessageDialog(this, translate("error.image.alpha.invalid"), translate("error"), JOptionPane.ERROR_MESSAGE);
|
||||
|
||||
@@ -943,6 +943,7 @@ public class PreviewPanel extends JPersistentSplitPane implements TagEditorPanel
|
||||
Tag tag = genericTagPanel.getTag();
|
||||
SWF swf = tag.getSwf();
|
||||
swf.clearImageCache();
|
||||
swf.clearShapeCache();
|
||||
swf.updateCharacters();
|
||||
tag.getTimelined().resetTimeline();
|
||||
swf.assignClassesToSymbols();
|
||||
|
||||
@@ -1384,6 +1384,8 @@ public class TagTreeContextMenu extends JPopupMenu {
|
||||
targetSwf.assignClassesToSymbols();
|
||||
sourceSwf.clearImageCache();
|
||||
targetSwf.clearImageCache();
|
||||
sourceSwf.clearShapeCache();
|
||||
targetSwf.clearShapeCache();
|
||||
sourceSwf.updateCharacters();
|
||||
targetSwf.updateCharacters();
|
||||
sourceSwf.resetTimelines(sourceSwf);
|
||||
@@ -1476,6 +1478,7 @@ public class TagTreeContextMenu extends JPopupMenu {
|
||||
swf.assignExportNamesToSymbols();
|
||||
swf.assignClassesToSymbols();
|
||||
swf.clearImageCache();
|
||||
swf.clearShapeCache();
|
||||
swf.updateCharacters();
|
||||
swf.computeDependentCharacters();
|
||||
swf.computeDependentFrames();
|
||||
@@ -2446,6 +2449,7 @@ public class TagTreeContextMenu extends JPopupMenu {
|
||||
swf.assignExportNamesToSymbols();
|
||||
swf.assignClassesToSymbols();
|
||||
swf.clearImageCache();
|
||||
swf.clearShapeCache();
|
||||
swf.updateCharacters();
|
||||
mainPanel.refreshTree(swf);
|
||||
}
|
||||
@@ -2926,6 +2930,7 @@ public class TagTreeContextMenu extends JPopupMenu {
|
||||
sourceSwf.assignExportNamesToSymbols();
|
||||
sourceSwf.assignClassesToSymbols();
|
||||
sourceSwf.clearImageCache();
|
||||
sourceSwf.clearShapeCache();
|
||||
sourceSwf.updateCharacters();
|
||||
sourceSwf.resetTimelines(sourceSwf);
|
||||
}
|
||||
@@ -2933,6 +2938,7 @@ public class TagTreeContextMenu extends JPopupMenu {
|
||||
targetSwf.assignExportNamesToSymbols();
|
||||
targetSwf.assignClassesToSymbols();
|
||||
targetSwf.clearImageCache();
|
||||
targetSwf.clearShapeCache();
|
||||
targetSwf.updateCharacters();
|
||||
targetSwf.resetTimelines(targetSwf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user