diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-01-23 07:55:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-23 07:55:50 +0100 |
commit | a19a28288c036b5080d4bd351a72a10f5d0c4fdb (patch) | |
tree | 670e7de85f4f3c0b5a882c153f8f306a1da48796 | |
parent | 5ec3b5f2c9b3640aef2f3374a93cc0db3df9903a (diff) | |
parent | 16eee2f59b6d2567d7d15d9a2ff66c52e9705137 (diff) | |
download | redot-engine-a19a28288c036b5080d4bd351a72a10f5d0c4fdb.tar.gz |
Merge pull request #7610 from Hinsbart/shape_warning
CollisionShape2D: Fix warning icon not updating.
-rw-r--r-- | scene/2d/collision_polygon_2d.cpp | 1 | ||||
-rw-r--r-- | scene/2d/collision_shape_2d.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/scene/2d/collision_polygon_2d.cpp b/scene/2d/collision_polygon_2d.cpp index 04f096f229..4364e5f1fc 100644 --- a/scene/2d/collision_polygon_2d.cpp +++ b/scene/2d/collision_polygon_2d.cpp @@ -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 { diff --git a/scene/2d/collision_shape_2d.cpp b/scene/2d/collision_shape_2d.cpp index a92065d6fb..45fc734aef 100644 --- a/scene/2d/collision_shape_2d.cpp +++ b/scene/2d/collision_shape_2d.cpp @@ -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 { |