You've already forked godot
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user