mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 09:29:38 +01:00
Small tweak.
This commit is contained in:
parent
862ab3c5ca
commit
645eba011b
@ -140,6 +140,10 @@ void VertexLights2DServer::light_set_enabled(RID p_light, const bool p_enabled)
|
||||
VertexLightData2D *light = light_owner.getornull(p_light);
|
||||
ERR_FAIL_COND(light == NULL);
|
||||
|
||||
if (light->enabled == p_enabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
light->enabled = p_enabled;
|
||||
|
||||
_light_changed(light);
|
||||
|
Loading…
Reference in New Issue
Block a user