Fix StringName not documented for enum hint

This commit is contained in:
Haoyu Qiu
2025-11-02 21:21:25 +08:00
parent 0fdbf050e0
commit 86bf1d95fc
2 changed files with 5 additions and 4 deletions

View File

@ -3859,6 +3859,7 @@ EditorProperty *EditorInspectorDefaultPlugin::get_editor_for_property(Object *p_
Vector<String> options;
Vector<String> option_names;
if (p_hint_text.begins_with(";")) {
// This is not supported officially. Only for `interface/editor/editor_language`.
for (const String &option : p_hint_text.split(";", false)) {
options.append(option.get_slicec('/', 0));
option_names.append(option.get_slicec('/', 1));