Merge pull request #7610 from Hinsbart/shape_warning

CollisionShape2D: Fix warning icon not updating.
This commit is contained in:
Rémi Verschelde 2017-01-23 07:55:50 +01:00 committed by GitHub
commit a19a28288c
2 changed files with 2 additions and 0 deletions

View file

@ -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 {

View file

@ -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 {