Merge pull request #2698 from Faless/add_area_fix

Fix bug in Body(2D)SW::add_area
This commit is contained in:
Juan Linietsky 2016-01-23 23:07:23 -03:00
commit d01f55a78e
4 changed files with 42 additions and 10 deletions

View file

@ -32,14 +32,14 @@
void CollisionObject2D::_update_shapes_from_children() {
shapes.resize(0);
shapes.clear();
for(int i=0;i<get_child_count();i++) {
Node* n = get_child(i);
n->call("_add_to_collision_object",this);
}
// _update_shapes();
_update_shapes();
}
void CollisionObject2D::_notification(int p_what) {