fix bug excludeLight

This commit is contained in:
Leonid Gaev
2012-06-15 19:25:40 +06:00
parent 0da520d22f
commit 2b4e16b7ff

View File

@@ -341,7 +341,7 @@ public class Camera3D extends Object3D {
light = lights[i];
// Checking light source for existing in excludedLights
j = 0;
while (j<excludedLightLength && excludedLights[j]!=light) j++;
while (j<excludedLightLength && root.excludedLights[j]!=light) j++;
if (j<excludedLightLength) continue;
light.lightToObjectTransform.combine(root.cameraToLocalTransform, light.localToCameraTransform);
@@ -357,7 +357,7 @@ public class Camera3D extends Object3D {
light = lights[i];
// Checking light source for existing in excludedLights
j = 0;
while (j<excludedLightLength && excludedLights[j]!=light) j++;
while (j<excludedLightLength && root.excludedLights[j]!=light) j++;
if (j<excludedLightLength) continue;
light.lightToObjectTransform.combine(root.cameraToLocalTransform, light.localToCameraTransform);