mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:53:52 +00:00
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,6 +1211,7 @@ void ObjectAnimation::fillBatch(Ogre::StaticGeometry *sg)
|
||||||
for(;iter != mObjectRoot->mEntities.rend();++iter)
|
for(;iter != mObjectRoot->mEntities.rend();++iter)
|
||||||
{
|
{
|
||||||
Ogre::Node *node = (*iter)->getParentNode();
|
Ogre::Node *node = (*iter)->getParentNode();
|
||||||
|
if ((*iter)->isVisible())
|
||||||
sg->addEntity(*iter, node->_getDerivedPosition(), node->_getDerivedOrientation(), node->_getDerivedScale());
|
sg->addEntity(*iter, node->_getDerivedPosition(), node->_getDerivedOrientation(), node->_getDerivedScale());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue