From 56a6d90f36f2b20f537ebb4d8f8b71696e6137cc Mon Sep 17 00:00:00 2001 From: Chaosus Date: Sun, 8 Apr 2018 19:52:13 +0300 Subject: [PATCH] Fix #18058 regression --- editor/property_editor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index e1ee32fb4f0..4bd70d0c29e 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -882,7 +882,12 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant:: } else if (hint_text != "") { int idx = 0; - const Vector custom_resources = EditorNode::get_editor_data().get_custom_types()["Resource"]; + Vector custom_resources; + + if (EditorNode::get_editor_data().get_custom_types().has("Resource")) { + custom_resources = EditorNode::get_editor_data().get_custom_types()["Resource"]; + } + for (int i = 0; i < hint_text.get_slice_count(","); i++) { String base = hint_text.get_slice(",", i);