Fix silent failure when creating collision shape as sibling of scene root

This commit is contained in:
Robert Yevdokimov 2026-02-14 10:32:37 -05:00
parent 20d58a38c6
commit da3645d5a9

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;
}