- remove unnecessary checks in RenderQueue.renderGeometryList()

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8801 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent e57637f307
commit f55a277cd9
  1. 12
      engine/src/core/com/jme3/renderer/queue/RenderQueue.java

@ -294,16 +294,10 @@ public class RenderQueue {
list.setCamera(cam); // select camera for sorting
list.sort();
for (int i = 0; i < list.size(); i++) {
Spatial obj = list.get(i);
Geometry obj = list.get(i);
assert obj != null;
if (obj instanceof Geometry) {
Geometry g = (Geometry) obj;
rm.renderGeometry(g);
// make sure to reset queue distance
}
if (obj != null) {
obj.queueDistance = Float.NEGATIVE_INFINITY;
}
rm.renderGeometry(obj);
obj.queueDistance = Float.NEGATIVE_INFINITY;
}
if (clear) {
list.clear();

Loading…
Cancel
Save