Fix object creation feature to use a proper type in Editor

7e48786ffc
This commit is contained in:
2026-07-24 18:40:43 +02:00
parent 55a756532b
commit 4d589314c8
@@ -741,7 +741,7 @@ namespace FlaxEditor.CustomEditors.Editors
if (types.Length == 1)
{
// Single type
button.Clicked += () => SetValue(Values.Type.CreateInstance());
button.Clicked += () => SetValue(types[0].CreateInstance());
}
else
{