Skip to content

Commit a12cdc2

Browse files
committed
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.
1 parent 08f9cba commit a12cdc2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scene/2d/light_occluder_2d.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ void OccluderPolygon2D::set_polygon(const Vector<Vector2> &p_polygon) {
9090
rect_cache_dirty = true;
9191
RS::get_singleton()->canvas_occluder_polygon_set_shape(occ_polygon, p_polygon, closed);
9292
emit_changed();
93+
update_configuration_warning();
9394
}
9495

9596
Vector<Vector2> OccluderPolygon2D::get_polygon() const {

0 commit comments

Comments
 (0)