Decouple EditorInterface from EditorPlugin

- Simplify some includes in the process.
- Also exposes EditorInterface.movie_maker_enabled as a property.
This commit is contained in:
Yuri Sizov 2023-04-05 17:14:46 +02:00
parent 055ee1276f
commit 49d7041d34
25 changed files with 632 additions and 481 deletions

View file

@ -34,6 +34,7 @@
#include "editor_network_profiler.h"
#include "replication_editor.h"
#include "editor/editor_interface.h"
#include "editor/editor_node.h"
void MultiplayerEditorDebugger::_bind_methods() {
@ -119,7 +120,7 @@ MultiplayerEditorPlugin::MultiplayerEditorPlugin() {
}
void MultiplayerEditorPlugin::_open_request(const String &p_path) {
get_editor_interface()->open_scene_from_path(p_path);
EditorInterface::get_singleton()->open_scene_from_path(p_path);
}
void MultiplayerEditorPlugin::_notification(int p_what) {