mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
Early out for scene graphs with no update callbacks in SceneManager::notifyAttached
This commit is contained in:
parent
83a9435167
commit
c95868969b
1 changed files with 6 additions and 2 deletions
|
@ -478,8 +478,12 @@ namespace Resource
|
|||
|
||||
void SceneManager::notifyAttached(osg::Node *node) const
|
||||
{
|
||||
InitWorldSpaceParticlesVisitor visitor (mParticleSystemMask);
|
||||
node->accept(visitor);
|
||||
// we can skip any scene graphs without update callbacks since we know that particle emitters will have an update callback set
|
||||
if (node->getNumChildrenRequiringUpdateTraversal() > 0)
|
||||
{
|
||||
InitWorldSpaceParticlesVisitor visitor (mParticleSystemMask);
|
||||
node->accept(visitor);
|
||||
}
|
||||
}
|
||||
|
||||
Resource::ImageManager* SceneManager::getImageManager()
|
||||
|
|
Loading…
Reference in a new issue