From a12cdc202d93127d72553aa7669138d88f4d515c Mon Sep 17 00:00:00 2001 From: Jannik Seemann Date: Tue, 29 Oct 2024 15:01:29 +0100 Subject: [PATCH] creating LightOccluder2D polygon makes exclamation mark in scene tree disappear fixes #21225 This commit fixes an UI bug which leads to a persistent warning in scene tree. Before this fix the only way to get rid of the warning was to reload the complete scene. The inspector issue mentioned in #21225 that polygon updates aren't reflected seems to be fixed in v4.3 and therefore not part of this commit. --- scene/2d/light_occluder_2d.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/2d/light_occluder_2d.cpp b/scene/2d/light_occluder_2d.cpp index 7c3fb61d04d9..199384556423 100644 --- a/scene/2d/light_occluder_2d.cpp +++ b/scene/2d/light_occluder_2d.cpp @@ -90,6 +90,7 @@ void OccluderPolygon2D::set_polygon(const Vector &p_polygon) { rect_cache_dirty = true; RS::get_singleton()->canvas_occluder_polygon_set_shape(occ_polygon, p_polygon, closed); emit_changed(); + update_configuration_warning(); } Vector OccluderPolygon2D::get_polygon() const {