From 7cb3ca4712ab05a2968920edb93f18de9a98b80d Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Wed, 29 Jun 2011 21:45:58 +0000 Subject: [PATCH] FilterPostProcessor : better init of the filter stack in the read method git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7782 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/post/FilterPostProcessor.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/src/core/com/jme3/post/FilterPostProcessor.java b/engine/src/core/com/jme3/post/FilterPostProcessor.java index 24a698749..cc7680343 100644 --- a/engine/src/core/com/jme3/post/FilterPostProcessor.java +++ b/engine/src/core/com/jme3/post/FilterPostProcessor.java @@ -481,6 +481,10 @@ public class FilterPostProcessor implements SceneProcessor, Savable { InputCapsule ic = im.getCapsule(this); numSamples = ic.readInt("numSamples", 0); filters = ic.readSavableArrayList("filters", null); + for (Filter filter : filters) { + filter.setProcessor(this); + setFilterState(filter, filter.isEnabled()); + } assetManager = im.getAssetManager(); }