From e6c6f047bad590236abb10b996cd04edf7357cd4 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Sun, 8 Jan 2012 15:58:55 +0000 Subject: [PATCH] SDK: - 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 --- .../com/jme3/gde/core/filters/FilterExplorerTopComponent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/filters/FilterExplorerTopComponent.java b/sdk/jme3-core/src/com/jme3/gde/core/filters/FilterExplorerTopComponent.java index f10ae631f..34f24b060 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/filters/FilterExplorerTopComponent.java +++ b/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); setActivatedNodes(new Node[]{object.getNodeDelegate()}); open(); + boolean wasAdded = added; if (currentFile != null && added) { setFilterEnabled(false); } currentFile = object; - if (added) { + if (wasAdded) { setFilterEnabled(true); } requestVisible();