- remove unnecessary checks in RenderQueue.renderGeometryList()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8801 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
e57637f307
commit
f55a277cd9
@ -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…
x
Reference in New Issue
Block a user