|
@@ -43,6 +43,7 @@
|
|
|
#include "editor/gui/editor_quick_open_dialog.h"
|
|
|
#include "editor/gui/editor_run_bar.h"
|
|
|
#include "editor/gui/editor_scene_tabs.h"
|
|
|
+#include "editor/gui/editor_toaster.h"
|
|
|
#include "editor/gui/scene_tree_editor.h"
|
|
|
#include "editor/inspector_dock.h"
|
|
|
#include "editor/plugins/node_3d_editor_plugin.h"
|
|
@@ -89,6 +90,10 @@ Ref<EditorSettings> EditorInterface::get_editor_settings() const {
|
|
|
return EditorSettings::get_singleton();
|
|
|
}
|
|
|
|
|
|
+EditorToaster *EditorInterface::get_editor_toaster() const {
|
|
|
+ return EditorToaster::get_singleton();
|
|
|
+}
|
|
|
+
|
|
|
EditorUndoRedoManager *EditorInterface::get_editor_undo_redo() const {
|
|
|
return EditorUndoRedoManager::get_singleton();
|
|
|
}
|
|
@@ -581,6 +586,7 @@ void EditorInterface::_bind_methods() {
|
|
|
ClassDB::bind_method(D_METHOD("get_resource_previewer"), &EditorInterface::get_resource_previewer);
|
|
|
ClassDB::bind_method(D_METHOD("get_selection"), &EditorInterface::get_selection);
|
|
|
ClassDB::bind_method(D_METHOD("get_editor_settings"), &EditorInterface::get_editor_settings);
|
|
|
+ ClassDB::bind_method(D_METHOD("get_editor_toaster"), &EditorInterface::get_editor_toaster);
|
|
|
ClassDB::bind_method(D_METHOD("get_editor_undo_redo"), &EditorInterface::get_editor_undo_redo);
|
|
|
|
|
|
ClassDB::bind_method(D_METHOD("make_mesh_previews", "meshes", "preview_size"), &EditorInterface::_make_mesh_previews);
|