Add support for AssetPreview to use debug drawing if needed

This commit is contained in:
Wojtek Figat
2021-06-01 10:27:30 +02:00
parent 2c2c7744eb
commit 623299e59f
5 changed files with 135 additions and 53 deletions

View File

@@ -267,7 +267,7 @@ void SceneRenderTask::OnCollectDrawCalls(RenderContext& renderContext)
{
for (int32 i = 0; i < CustomActors.Count(); i++)
{
if (CustomActors[i]->GetIsActive())
if (CustomActors[i] && CustomActors[i]->GetIsActive())
CustomActors[i]->DrawHierarchy(renderContext);
}
}