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
3.0
rem..om 14 years ago
parent e42ab8f0c1
commit 7cb3ca4712
  1. 4
      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();
}

Loading…
Cancel
Save