diff options
Diffstat (limited to 'editor')
-rw-r--r-- | editor/property_editor.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index 5136c96cbf..9733f49f42 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -415,7 +415,11 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant:: menu->clear(); Vector<String> options = hint_text.split(","); for (int i = 0; i < options.size(); i++) { - menu->add_item(options[i], i); + if (options[i].find(":") != -1) { + menu->add_item(options[i].get_slicec(':', 0), options[i].get_slicec(':', 1).to_int()); + } else { + menu->add_item(options[i], i); + } } menu->set_position(get_position()); menu->popup(); |