- fix in FilterExplorer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7711 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
@@ -167,16 +167,16 @@ public final class FilterExplorerTopComponent extends TopComponent implements Ex
|
|||||||
if (added == enabled) {
|
if (added == enabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
added = enabled;
|
|
||||||
if (currentFile != null) {
|
if (currentFile != null) {
|
||||||
|
added = enabled;
|
||||||
final FilterPostProcessor fpp = this.node.getFilterPostProcessor();
|
final FilterPostProcessor fpp = this.node.getFilterPostProcessor();
|
||||||
SceneApplication.getApplication().enqueue(new Callable() {
|
SceneApplication.getApplication().enqueue(new Callable() {
|
||||||
|
|
||||||
public Object call() throws Exception {
|
public Object call() throws Exception {
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
SceneApplication.getApplication().getViewPort().removeProcessor(fpp);
|
|
||||||
} else {
|
|
||||||
SceneApplication.getApplication().getViewPort().addProcessor(fpp);
|
SceneApplication.getApplication().getViewPort().addProcessor(fpp);
|
||||||
|
} else {
|
||||||
|
SceneApplication.getApplication().getViewPort().removeProcessor(fpp);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user