From 16eee2f59b6d2567d7d15d9a2ff66c52e9705137 Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Sun, 22 Jan 2017 14:09:41 +0100 Subject: [PATCH] CollisionShape2D: Fix warning icon not updating. `CollisionPolygon2D` also had this problem. --- scene/2d/collision_polygon_2d.cpp | 1 + scene/2d/collision_shape_2d.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/scene/2d/collision_polygon_2d.cpp b/scene/2d/collision_polygon_2d.cpp index 04f096f2297..4364e5f1fc6 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& p_polygon) { _update_parent(); } update(); + update_configuration_warning(); } Vector CollisionPolygon2D::get_polygon() const { diff --git a/scene/2d/collision_shape_2d.cpp b/scene/2d/collision_shape_2d.cpp index a92065d6fb3..45fc734aef7 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& p_shape) { if (shape.is_valid()) shape->connect("changed",this,"_shape_changed"); + update_configuration_warning(); } Ref CollisionShape2D::get_shape() const {