Merge pull request #112318 from timothyqiu/string-name-enum

Fix `StringName` not documented for enum hint
This commit is contained in:
Thaddeus Crews 2025-11-04 16:32:45 -06:00
commit 05d9587d26
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
2 changed files with 5 additions and 4 deletions

View file

@ -3863,6 +3863,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));