- 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.setCamera(cam); // select camera for sorting
|
||||||
list.sort();
|
list.sort();
|
||||||
for (int i = 0; i < list.size(); i++) {
|
for (int i = 0; i < list.size(); i++) {
|
||||||
Spatial obj = list.get(i);
|
Geometry obj = list.get(i);
|
||||||
assert obj != null;
|
assert obj != null;
|
||||||
if (obj instanceof Geometry) {
|
rm.renderGeometry(obj);
|
||||||
Geometry g = (Geometry) obj;
|
obj.queueDistance = Float.NEGATIVE_INFINITY;
|
||||||
rm.renderGeometry(g);
|
|
||||||
// make sure to reset queue distance
|
|
||||||
}
|
|
||||||
if (obj != null) {
|
|
||||||
obj.queueDistance = Float.NEGATIVE_INFINITY;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (clear) {
|
if (clear) {
|
||||||
list.clear();
|
list.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user