Browse Source

Merge pull request #98637 from SubmergedTree/creating-light-occluder-2d-polygon-makes-warning-exclamation-mark-disappear

Clear warning in the scene tree by creating an LightOccluder2D polygon
Thaddeus Crews 10 months ago
parent
commit
49c22e06d0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/2d/light_occluder_2d.cpp

+ 1 - 0
scene/2d/light_occluder_2d.cpp

@@ -90,6 +90,7 @@ void OccluderPolygon2D::set_polygon(const Vector<Vector2> &p_polygon) {
 	rect_cache_dirty = true;
 	rect_cache_dirty = true;
 	RS::get_singleton()->canvas_occluder_polygon_set_shape(occ_polygon, p_polygon, closed);
 	RS::get_singleton()->canvas_occluder_polygon_set_shape(occ_polygon, p_polygon, closed);
 	emit_changed();
 	emit_changed();
+	update_configuration_warning();
 }
 }
 
 
 Vector<Vector2> OccluderPolygon2D::get_polygon() const {
 Vector<Vector2> OccluderPolygon2D::get_polygon() const {