|
|
@ -713,12 +713,14 @@ public class Material implements CloneableSmartAsset, Cloneable, Savable { |
|
|
|
ambientLightColor.addLocal(l.getColor()); |
|
|
|
ambientLightColor.addLocal(l.getColor()); |
|
|
|
if(removeLights){ |
|
|
|
if(removeLights){ |
|
|
|
lightList.remove(l); |
|
|
|
lightList.remove(l); |
|
|
|
|
|
|
|
j--; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (l instanceof LightProbe) { |
|
|
|
if (l instanceof LightProbe) { |
|
|
|
probe = (LightProbe)l; |
|
|
|
probe = (LightProbe)l; |
|
|
|
if(removeLights){ |
|
|
|
if(removeLights){ |
|
|
|
lightList.remove(l); |
|
|
|
lightList.remove(l); |
|
|
|
|
|
|
|
j--; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|