diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-31 18:48:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 18:48:22 +0200 |
commit | 44b2962f4fa83449b6dc29768b175290a6f6b801 (patch) | |
tree | 352118b097b0ab0f31ae55d7e5fad9d670174698 | |
parent | 1ed978574eb6623d3410b14198a5af8ad50683ed (diff) | |
parent | 004ced89aa195c4caa209e3b8bbac1aed0d661a7 (diff) |
Merge pull request #59750 from KoBeWi/commit_farm_seems_still_functional_🤔
-rw-r--r-- | editor/plugins/mesh_instance_3d_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/mesh_instance_3d_editor_plugin.cpp b/editor/plugins/mesh_instance_3d_editor_plugin.cpp index 8f285cb7f9..d33803213a 100644 --- a/editor/plugins/mesh_instance_3d_editor_plugin.cpp +++ b/editor/plugins/mesh_instance_3d_editor_plugin.cpp @@ -75,7 +75,7 @@ void MeshInstance3DEditor::_menu_option(int p_option) { CollisionShape3D *cshape = memnew(CollisionShape3D); cshape->set_shape(shape); StaticBody3D *body = memnew(StaticBody3D); - body->add_child(cshape); + body->add_child(cshape, true); Node *owner = node == get_tree()->get_edited_scene_root() ? node : node->get_owner(); @@ -110,7 +110,7 @@ void MeshInstance3DEditor::_menu_option(int p_option) { CollisionShape3D *cshape = memnew(CollisionShape3D); cshape->set_shape(shape); StaticBody3D *body = memnew(StaticBody3D); - body->add_child(cshape); + body->add_child(cshape, true); Node *owner = instance == get_tree()->get_edited_scene_root() ? instance : instance->get_owner(); |