protected void updateWorldLightList() { if (parent == null) { worldLights.update(localLights, null); refreshFlags &= ~RF_LIGHTLIST; } else { if ((parent.refreshFlags & RF_LIGHTLIST) == 0) { worldLights.update(localLights, parent.worldLights); refreshFlags &= ~RF_LIGHTLIST; } else { assert false; } } }