summaryrefslogtreecommitdiffstats
path: root/modules/multiplayer
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-04-05 17:14:46 +0200
committerYuri Sizov <yuris@humnom.net>2023-04-17 21:59:09 +0200
commit49d7041d34e78bd6295b6a48b7c3fe1e7ba75bbc (patch)
tree8b0388466270fa20d7ab6f890a052ba363d54ed7 /modules/multiplayer
parent055ee1276f097727d1c0ba3c1c25a12981c20bfa (diff)
downloadredot-engine-49d7041d34e78bd6295b6a48b7c3fe1e7ba75bbc.tar.gz
Decouple EditorInterface from EditorPlugin
- Simplify some includes in the process. - Also exposes EditorInterface.movie_maker_enabled as a property.
Diffstat (limited to 'modules/multiplayer')
-rw-r--r--modules/multiplayer/editor/multiplayer_editor_plugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/multiplayer/editor/multiplayer_editor_plugin.cpp b/modules/multiplayer/editor/multiplayer_editor_plugin.cpp
index 28d05e1dee..af2db543c0 100644
--- a/modules/multiplayer/editor/multiplayer_editor_plugin.cpp
+++ b/modules/multiplayer/editor/multiplayer_editor_plugin.cpp
@@ -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) {