Fix #18058 regression

This commit is contained in:
Chaosus 2018-04-08 19:52:13 +03:00
parent 2f4f8de459
commit 56a6d90f36
1 changed files with 6 additions and 1 deletions

View File

@ -882,7 +882,12 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant::
} else if (hint_text != "") { } else if (hint_text != "") {
int idx = 0; int idx = 0;
const Vector<EditorData::CustomType> custom_resources = EditorNode::get_editor_data().get_custom_types()["Resource"]; Vector<EditorData::CustomType> 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++) { for (int i = 0; i < hint_text.get_slice_count(","); i++) {
String base = hint_text.get_slice(",", i); String base = hint_text.get_slice(",", i);