Extract editor main screen
This commit is contained in:
parent
d0dc3896ad
commit
5e1c9d68aa
27 changed files with 484 additions and 354 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue