From 3a1475fa9c024cf5b3151803470d3d9701496f91 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 28 Feb 2022 23:16:00 +0100 Subject: [PATCH] Use SoftObjectReference for deformable asset ref to prevent removing it by Content GC --- Source/Engine/Graphics/GPUDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/Graphics/GPUDevice.cpp b/Source/Engine/Graphics/GPUDevice.cpp index 91e6b14f1..51827397a 100644 --- a/Source/Engine/Graphics/GPUDevice.cpp +++ b/Source/Engine/Graphics/GPUDevice.cpp @@ -11,6 +11,7 @@ #include "Engine/Content/Assets/Shader.h" #include "Engine/Content/Assets/Material.h" #include "Engine/Content/Content.h" +#include "Engine/Content/SoftAssetReference.h" #include "Engine/Platform/Windows/WindowsWindow.h" #include "Engine/Render2D/Render2D.h" #include "Engine/Engine/CommandLine.h" @@ -19,7 +20,6 @@ #include "Engine/Profiler/Profiler.h" #include "Engine/Renderer/RenderList.h" #include "Engine/Core/Utilities.h" -#include "Engine/Scripting/SoftObjectReference.h" GPUPipelineState* GPUPipelineState::Spawn(const SpawnParams& params) { @@ -253,7 +253,7 @@ struct GPUDevice::PrivateData GPUPipelineState* PS_Clear = nullptr; GPUBuffer* FullscreenTriangleVB = nullptr; AssetReference DefaultMaterial; - SoftObjectReference DefaultDeformableMaterial; + SoftAssetReference DefaultDeformableMaterial; AssetReference DefaultNormalMap; AssetReference DefaultWhiteTexture; AssetReference DefaultBlackTexture;