aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_data.cpp
diff options
context:
space:
mode:
authorhodes2016-03-29 20:02:53 -0300
committerhodes2016-04-02 20:39:35 -0300
commit7a1d7af332552e9658ef8e759614f3841984d4eb (patch)
treec7e1e9237c7ba570b9788ff17eea05d008dd5d4f /tools/editor/editor_data.cpp
parent15d1fca0614ad87fd16fa7532e4db867b342d00e (diff)
downloadgodot-7a1d7af332552e9658ef8e759614f3841984d4eb.tar.gz
godot-7a1d7af332552e9658ef8e759614f3841984d4eb.tar.zst
godot-7a1d7af332552e9658ef8e759614f3841984d4eb.zip
Enables the possibility of editing on multiple plugins at same time on same object type.
Diffstat (limited to 'tools/editor/editor_data.cpp')
-rw-r--r--tools/editor/editor_data.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/editor/editor_data.cpp b/tools/editor/editor_data.cpp
index f78ab93c3..8bb2d60ca 100644
--- a/tools/editor/editor_data.cpp
+++ b/tools/editor/editor_data.cpp
@@ -260,6 +260,16 @@ EditorPlugin* EditorData::get_subeditor(Object *p_object) {
return NULL;
}
+Vector<EditorPlugin*> EditorData::get_subeditors(Object* p_object) {
+ Vector<EditorPlugin*> sub_plugins;
+ for (int i = 0; i < editor_plugins.size(); i++) {
+ if (!editor_plugins[i]->has_main_screen() && editor_plugins[i]->handles(p_object)) {
+ sub_plugins.push_back(editor_plugins[i]);
+ }
+ }
+ return sub_plugins;
+}
+
EditorPlugin* EditorData::get_editor(String p_name) {
for(int i=0;i<editor_plugins.size();i++) {