mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-14 04:31:58 +00:00
Hex dump - do not show preview of placeobject and showframe, it causes bugs
This commit is contained in:
@@ -3506,7 +3506,12 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
DumpInfo di = (DumpInfo) treeItem;
|
||||
t = di.getTag();
|
||||
}
|
||||
|
||||
if ((t instanceof ShowFrameTag)||(t instanceof PlaceObjectTypeTag)) {
|
||||
//FIXME
|
||||
previewPanel.clear();
|
||||
previewPanel.showEmpty();
|
||||
return;
|
||||
}
|
||||
showPreview(t, dumpPreviewPanel, getFrameForTreeItem(t), getTimelinedForTreeItem(treeItem));
|
||||
}
|
||||
}
|
||||
@@ -3521,6 +3526,9 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
if (treeItem == null) {
|
||||
return -1;
|
||||
}
|
||||
if ((currentView == VIEW_DUMP)||(currentView == VIEW_TIMELINE)) {
|
||||
return -1;
|
||||
}
|
||||
TreePath path = getCurrentTree().getModel().getTreePath(treeItem);
|
||||
if (path == null) {
|
||||
return -1;
|
||||
@@ -3538,6 +3546,10 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
if (treeItem == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ((currentView == VIEW_DUMP)||(currentView == VIEW_TIMELINE)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
TreePath path = getCurrentTree().getModel().getTreePath(treeItem);
|
||||
if (path == null) {
|
||||
|
||||
Reference in New Issue
Block a user