Fix for env probes baking in Editor

This commit is contained in:
Wojtek Figat
2021-09-20 11:37:25 +02:00
parent 628456bcc6
commit 77b0d194c7
2 changed files with 18 additions and 5 deletions

View File

@@ -151,7 +151,8 @@ Delegate<const ProbesRenderer::Entry&> ProbesRenderer::OnFinishBake;
void ProbesRenderer::Bake(EnvironmentProbe* probe, float timeout)
{
ASSERT(probe && dynamic_cast<EnvironmentProbe*>(probe));
if (!probe || probe->IsUsingCustomProbe())
return;
// Check if already registered for bake
for (int32 i = 0; i < _probesToBake.Count(); i++)