Merge pull request #116292 from ryevdokimov/sibiling-error

Fix silent failure when creating collision shape as sibling of scene root
This commit is contained in:
Thaddeus Crews 2026-02-16 15:02:40 -06:00
commit b7b205c410
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -365,10 +365,8 @@ void MeshInstance3DEditor::_create_collision_shape() {
for (Node *E : selection) {
if (placement_option == SHAPE_PLACEMENT_SIBLING && E == get_tree()->get_edited_scene_root()) {
if (verbose) {
err_dialog->set_text(TTR("Can't create a collision shape as sibling for the scene root."));
err_dialog->popup_centered();
}
err_dialog->set_text(TTR("Can't create a collision shape as sibling for the scene root."));
err_dialog->popup_centered();
continue;
}