You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Rename EditorInterface.get_editor_main_control to get_editor_main_screen
This commit is contained in:
@@ -5459,7 +5459,7 @@ void CanvasItemEditorPlugin::set_state(const Dictionary &p_state) {
|
||||
CanvasItemEditorPlugin::CanvasItemEditorPlugin() {
|
||||
canvas_item_editor = memnew(CanvasItemEditor);
|
||||
canvas_item_editor->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
EditorNode::get_singleton()->get_main_control()->add_child(canvas_item_editor);
|
||||
EditorNode::get_singleton()->get_main_screen_control()->add_child(canvas_item_editor);
|
||||
canvas_item_editor->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
|
||||
canvas_item_editor->hide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user