* ViewPort will only set refresh flags on scene if its a Geometry (since normally a node based scene graph would have these flags set already).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9580 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..om 13 years ago
parent 86be16cda4
commit 94f424f203
  1. 9
      engine/src/core/com/jme3/renderer/ViewPort.java

@ -36,6 +36,7 @@ import com.jme3.math.ColorRGBA;
import com.jme3.post.SceneProcessor;
import com.jme3.renderer.queue.RenderQueue;
import com.jme3.scene.Spatial;
import com.jme3.scene.Geometry;
import com.jme3.texture.FrameBuffer;
import java.util.ArrayList;
import java.util.List;
@ -290,7 +291,9 @@ public class ViewPort {
throw new IllegalArgumentException( "Scene cannot be null." );
}
sceneList.add(scene);
scene.forceRefresh(true, false, true);
if (scene instanceof Geometry) {
scene.forceRefresh(true, false, true);
}
}
/**
@ -305,7 +308,9 @@ public class ViewPort {
throw new IllegalArgumentException( "Scene cannot be null." );
}
sceneList.remove(scene);
scene.forceRefresh(true, false, true);
if (scene instanceof Geometry) {
scene.forceRefresh(true, false, true);
}
}
/**

Loading…
Cancel
Save