You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Extract editor main screen
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include "core/math/projection.h"
|
||||
#include "core/os/keyboard.h"
|
||||
#include "editor/debugger/editor_debugger_node.h"
|
||||
#include "editor/editor_main_screen.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_settings.h"
|
||||
#include "editor/editor_string_names.h"
|
||||
@@ -9376,7 +9377,7 @@ Vector<Node3D *> Node3DEditor::gizmo_bvh_frustum_query(const Vector<Plane> &p_fr
|
||||
Node3DEditorPlugin::Node3DEditorPlugin() {
|
||||
spatial_editor = memnew(Node3DEditor);
|
||||
spatial_editor->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(spatial_editor);
|
||||
EditorNode::get_singleton()->get_editor_main_screen()->get_control()->add_child(spatial_editor);
|
||||
|
||||
spatial_editor->hide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user