1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

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 "core/os/mutex.h"
#include "editor/editor_interface.h"
#include "editor/editor_node.h"
#include "editor/editor_scale.h"
#include "editor/editor_settings.h"
@@ -209,7 +210,7 @@ void TilesEditorPlugin::make_visible(bool p_visible) {
}
bool TilesEditorPlugin::is_tile_map_selected() {
TypedArray<Node> selection = get_editor_interface()->get_selection()->get_selected_nodes();
TypedArray<Node> selection = EditorInterface::get_singleton()->get_selection()->get_selected_nodes();
if (selection.size() == 1 && Object::cast_to<TileMap>(selection[0])) {
return true;
}