- fix filter not being displayed when a new filter is loaded

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8999 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent dd76ee0890
commit e6c6f047ba
  1. 3
      sdk/jme3-core/src/com/jme3/gde/core/filters/FilterExplorerTopComponent.java

@ -154,11 +154,12 @@ public final class FilterExplorerTopComponent extends TopComponent implements Ex
node = object.getLookup().lookup(FilterPostProcessorNode.class); node = object.getLookup().lookup(FilterPostProcessorNode.class);
setActivatedNodes(new Node[]{object.getNodeDelegate()}); setActivatedNodes(new Node[]{object.getNodeDelegate()});
open(); open();
boolean wasAdded = added;
if (currentFile != null && added) { if (currentFile != null && added) {
setFilterEnabled(false); setFilterEnabled(false);
} }
currentFile = object; currentFile = object;
if (added) { if (wasAdded) {
setFilterEnabled(true); setFilterEnabled(true);
} }
requestVisible(); requestVisible();

Loading…
Cancel
Save