diff options
| author | Juan Linietsky | 2018-06-26 19:05:11 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2018-06-26 19:06:16 -0300 |
| commit | c633b770cb648613ca88fc9e007718acfc219317 (patch) | |
| tree | 2aa72d9bfc3276db0ea8a6b833d7fade724b3c16 /editor/editor_inspector.cpp | |
| parent | f036353b93269e1162437f188f6792f3953ac155 (diff) | |
| download | godot-mirror.tar.gz godot-mirror.tar.zst godot-mirror.zip | |
Diffstat (limited to 'editor/editor_inspector.cpp')
| -rw-r--r-- | editor/editor_inspector.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 9a3174fb1..79746dcb5 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -1464,7 +1464,8 @@ void EditorInspector::update_tree() { #endif for (List<Ref<EditorInspectorPlugin> >::Element *E = valid_plugins.front(); E; E = E->next()) { Ref<EditorInspectorPlugin> ped = E->get(); - ped->parse_property(object, p.type, p.name, p.hint, p.hint_string, p.usage); + bool exclusive = ped->parse_property(object, p.type, p.name, p.hint, p.hint_string, p.usage); + List<EditorInspectorPlugin::AddedEditor> editors = ped->added_editors; //make a copy, since plugins may be used again in a sub-inspector ped->added_editors.clear(); @@ -1532,6 +1533,10 @@ void EditorInspector::update_tree() { } } } + + if (exclusive) { + break; + } } } |
