You've already forked godot
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user