Fix error during new json asset creation via ContentContextMenu if the class is missing empty constructor

#1838
This commit is contained in:
Wojtek Figat
2023-11-07 16:21:56 +01:00
parent 0d85094ebb
commit 22d754e797

View File

@@ -187,7 +187,7 @@ namespace FlaxEditor.Windows
continue;
// Get context proxy
ContentProxy p;
ContentProxy p = null;
if (type.Type.IsSubclassOf(typeof(ContentProxy)))
{
p = Editor.ContentDatabase.Proxy.Find(x => x.GetType() == type.Type);