Skip to content

Commit

Permalink
check light count
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Sep 5, 2024
1 parent 28f7987 commit 6cf3002
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ bool GlobalIlluminationCiVct::LoadGlobalIlluminationCiVct()
return false;
}

if (!scene->IsInitialized() || scene->VisualCount() == 0)
if (!scene->IsInitialized() || scene->VisualCount() == 0 ||
scene->LightCount() == 0)
{
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ bool GlobalIlluminationVct::LoadGlobalIlluminationVct()
return false;
}

if (!scene->IsInitialized() || scene->VisualCount() == 0)
if (!scene->IsInitialized() || scene->VisualCount() == 0 ||
scene->LightCount() == 0)
{
return false;
}
Expand Down

0 comments on commit 6cf3002

Please sign in to comment.