mirror of
https://github.com/godotengine/godot.git
synced 2026-01-08 00:25:01 +03:00
CollisionShape2D: Fix warning icon not updating.
`CollisionPolygon2D` also had this problem.
(cherry picked from commit 16eee2f59b)
This commit is contained in:
committed by
Rémi Verschelde
parent
98f01f9143
commit
1eb9925f58
@@ -243,6 +243,7 @@ void CollisionPolygon2D::set_polygon(const Vector<Point2>& p_polygon) {
|
||||
_update_parent();
|
||||
}
|
||||
update();
|
||||
update_configuration_warning();
|
||||
}
|
||||
|
||||
Vector<Point2> CollisionPolygon2D::get_polygon() const {
|
||||
|
||||
@@ -159,6 +159,7 @@ void CollisionShape2D::set_shape(const Ref<Shape2D>& p_shape) {
|
||||
if (shape.is_valid())
|
||||
shape->connect("changed",this,"_shape_changed");
|
||||
|
||||
update_configuration_warning();
|
||||
}
|
||||
|
||||
Ref<Shape2D> CollisionShape2D::get_shape() const {
|
||||
|
||||
Reference in New Issue
Block a user