Fix API_AUTO_SERIALZIATION usage if base type is not serializable
This commit is contained in:
@@ -1091,6 +1091,8 @@ namespace Flax.Build.Bindings
|
||||
var baseType = classInfo?.BaseType ?? structureInfo?.BaseType;
|
||||
if (classInfo != null && classInfo.IsBaseTypeHidden)
|
||||
baseType = null;
|
||||
if (baseType != null && (baseType.Type == "PersistentScriptingObject" || baseType.Type == "ScriptingObject"))
|
||||
baseType = null;
|
||||
CppAutoSerializeFields.Clear();
|
||||
CppAutoSerializeProperties.Clear();
|
||||
CppIncludeFiles.Add("Engine/Serialization/Serialization.h");
|
||||
|
||||
Reference in New Issue
Block a user