Fix compilation regression
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
|
||||
#include "Engine/Core/Config/PlatformSettingsBase.h"
|
||||
#include "Engine/Scripting/SoftObjectReference.h"
|
||||
#include "Engine/Content/Assets/Texture.h"
|
||||
|
||||
class Texture;
|
||||
|
||||
/// <summary>
|
||||
/// Android platform settings.
|
||||
|
||||
@@ -1793,6 +1793,18 @@ namespace Flax.Build.Bindings
|
||||
var apiTypeInfo = FindApiTypeInfo(buildData, typeInfo, caller);
|
||||
if (apiTypeInfo != null && apiTypeInfo.IsInterface)
|
||||
return true;
|
||||
|
||||
// Add includes to properly compile bindings (eg. SoftObjectReference<class Texture>)
|
||||
CppReferencesFiles.Add(apiTypeInfo?.File);
|
||||
if (typeInfo.GenericArgs != null)
|
||||
{
|
||||
for (int i = 0; i < typeInfo.GenericArgs.Count; i++)
|
||||
{
|
||||
var t = FindApiTypeInfo(buildData, typeInfo.GenericArgs[i], caller);
|
||||
CppReferencesFiles.Add(t?.File);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user