forked from teamnwah/openmw-tes3coop
Closes #805: Don't add entities that are supposed to be invisible to static geometry
This commit is contained in:
parent
86b2211932
commit
be1938ee90
1 changed files with 2 additions and 1 deletions
|
@ -1211,7 +1211,8 @@ void ObjectAnimation::fillBatch(Ogre::StaticGeometry *sg)
|
|||
for(;iter != mObjectRoot->mEntities.rend();++iter)
|
||||
{
|
||||
Ogre::Node *node = (*iter)->getParentNode();
|
||||
sg->addEntity(*iter, node->_getDerivedPosition(), node->_getDerivedOrientation(), node->_getDerivedScale());
|
||||
if ((*iter)->isVisible())
|
||||
sg->addEntity(*iter, node->_getDerivedPosition(), node->_getDerivedOrientation(), node->_getDerivedScale());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue