diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index bd720cde932..59a4ac8075f 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -1051,6 +1051,9 @@ void Node3DEditorViewport::_select_region() { Vector selected; Node *edited_scene = get_tree()->get_edited_scene_root(); + if (edited_scene == nullptr) { + return; + } for (int i = 0; i < instances.size(); i++) { Node3D *sp = Object::cast_to(ObjectDB::get_instance(instances[i]));