diff options
author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-07-18 12:19:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-18 12:19:37 +0200 |
commit | f8f06d3d38a0fb9726d864647ca0ed99ec47ef27 (patch) | |
tree | 7d626f8ea2407ae5452b8c5104fa26a98b29be57 /modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators | |
parent | 1770a2af5f0be323df3a9794eb5c8fb50d7a48c1 (diff) | |
parent | e8aeb6baa06654a9fce9c4462791ebfaab17fc0c (diff) | |
download | redot-engine-f8f06d3d38a0fb9726d864647ca0ed99ec47ef27.tar.gz |
Merge pull request #78264 from magian1127/4.0StringName
C#: Add `PropertyHint.Enum` support to `Array<StringName>`
Diffstat (limited to 'modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators')
-rw-r--r-- | modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertiesGenerator.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertiesGenerator.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertiesGenerator.cs index 3e6858485d..09a4ab538f 100644 --- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertiesGenerator.cs +++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/ScriptPropertiesGenerator.cs @@ -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) |