Merge pull request #78264 from magian1127/4.0StringName

C#: Add `PropertyHint.Enum` support to `Array<StringName>`
This commit is contained in:
Yuri Sizov 2023-07-18 12:19:37 +02:00 committed by GitHub
commit f8f06d3d38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -620,7 +620,7 @@ namespace Godot.SourceGenerators
bool isPresetHint = false;
if (elementVariantType == VariantType.String)
if (elementVariantType == VariantType.String || elementVariantType == VariantType.StringName)
isPresetHint = GetStringArrayEnumHint(elementVariantType, exportAttr, out hintString);
if (!isPresetHint)