Small tweak.

This commit is contained in:
Relintai 2024-03-26 12:14:45 +01:00
parent 862ab3c5ca
commit 645eba011b

View File

@ -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);