|
|
@ -478,8 +478,12 @@ namespace Resource
|
|
|
|
|
|
|
|
|
|
|
|
void SceneManager::notifyAttached(osg::Node *node) const
|
|
|
|
void SceneManager::notifyAttached(osg::Node *node) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
InitWorldSpaceParticlesVisitor visitor (mParticleSystemMask);
|
|
|
|
// we can skip any scene graphs without update callbacks since we know that particle emitters will have an update callback set
|
|
|
|
node->accept(visitor);
|
|
|
|
if (node->getNumChildrenRequiringUpdateTraversal() > 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
InitWorldSpaceParticlesVisitor visitor (mParticleSystemMask);
|
|
|
|
|
|
|
|
node->accept(visitor);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Resource::ImageManager* SceneManager::getImageManager()
|
|
|
|
Resource::ImageManager* SceneManager::getImageManager()
|
|
|
|