1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

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