summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators
diff options
context:
space:
mode:
authorYuri Sizov <11782833+YuriSizov@users.noreply.github.com>2023-07-18 12:19:37 +0200
committerGitHub <noreply@github.com>2023-07-18 12:19:37 +0200
commitf8f06d3d38a0fb9726d864647ca0ed99ec47ef27 (patch)
tree7d626f8ea2407ae5452b8c5104fa26a98b29be57 /modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators
parent1770a2af5f0be323df3a9794eb5c8fb50d7a48c1 (diff)
parente8aeb6baa06654a9fce9c4462791ebfaab17fc0c (diff)
downloadredot-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.cs2
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)