Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions ogre2/src/Ogre2GlobalIlluminationVct.cc
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,10 @@ void Ogre2GlobalIlluminationVct::Build()
for (size_t k = 0; k < ARRAY_PACKED_REALS; ++k)
{
// objData.mOwner is guaranteed by Ogre to not be a nullptr
if (objData.mOwner[k]->getVisible())
auto item = dynamic_cast<Ogre::Item *>(objData.mOwner[k]);
if (item && item->getVisible())
{
auto item = dynamic_cast<Ogre::Item *>(objData.mOwner[k]);
if (item)
{
voxelizer->addItem(item, false);
}
voxelizer->addItem(item, false);
}
}

Expand Down
Loading