Fix crash on Visual Script missing asset ref after hot-reload in Editor

#3823
This commit is contained in:
Wojtek Figat
2025-12-13 02:10:41 +01:00
parent 71391cf1cc
commit 2a53d0a462
3 changed files with 13 additions and 4 deletions

View File

@@ -406,6 +406,8 @@ namespace FlaxEngine.Utilities
{
if (type == ScriptType.Null)
return null;
if (type.BaseType == null)
return type.Type;
while (type.Type == null)
type = type.BaseType;
return type.Type;