diff options
| author | Jakub Grzesik | 2017-07-06 09:18:20 +0200 |
|---|---|---|
| committer | Jakub Grzesik | 2017-07-18 17:48:19 +0200 |
| commit | 708d8250011dad02fd7d3651eb057bdd9e52fb7f (patch) | |
| tree | 7e78acb79d4cd57cdc5c182edfe94ed7216a5af3 /editor/editor_node.cpp | |
| parent | 0ee47fefbe4f746d6e00e863e4523398365b4e47 (diff) | |
| download | godot-708d8250011dad02fd7d3651eb057bdd9e52fb7f.tar.gz godot-708d8250011dad02fd7d3651eb057bdd9e52fb7f.tar.zst godot-708d8250011dad02fd7d3651eb057bdd9e52fb7f.zip | |
Make available more informations about editor for Tool Plugins
Diffstat (limited to 'editor/editor_node.cpp')
| -rw-r--r-- | editor/editor_node.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 348dd32a6..450bc5b62 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1575,6 +1575,11 @@ void EditorNode::_edit_current() { editor_plugin_screen->make_visible(true); + int plugin_count = editor_data.get_editor_plugin_count(); + for (int i = 0; i < plugin_count; i++) { + editor_data.get_editor_plugin(i)->notify_main_screen_changed(editor_plugin_screen->get_name()); + } + for (int i = 0; i < editor_table.size(); i++) { main_editor_buttons[i]->set_pressed(editor_table[i] == main_plugin); @@ -2865,6 +2870,11 @@ void EditorNode::_editor_select(int p_which) { editor_plugin_screen->make_visible(true); editor_plugin_screen->selected_notify(); + int plugin_count = editor_data.get_editor_plugin_count(); + for (int i = 0; i < plugin_count; i++) { + editor_data.get_editor_plugin(i)->notify_main_screen_changed(editor_plugin_screen->get_name()); + } + if (EditorSettings::get_singleton()->get("interface/separate_distraction_mode")) { if (p_which == EDITOR_SCRIPT) { set_distraction_free_mode(script_distraction); @@ -3756,6 +3766,7 @@ void EditorNode::register_editor_types() { ClassDB::register_class<EditorResourcePreviewGenerator>(); ClassDB::register_class<EditorFileSystem>(); ClassDB::register_class<EditorFileSystemDirectory>(); + ClassDB::register_virtual_class<ScriptEditor>(); //ClassDB::register_type<EditorImporter>(); //ClassDB::register_type<EditorPostImport>(); |
