Fix for local particle update

See issue at:
https://sourceforge.net/p/flightgear/codetickets/2568/
This commit is contained in:
James Turner 2021-03-22 19:28:14 +00:00 committed by Automatic Release Builder
parent c9d83fab6c
commit 0970bb1be2

View File

@ -187,6 +187,7 @@ void ParticlesGlobalManager::initFromMainThread()
std::lock_guard<std::mutex> g(d->_lock); std::lock_guard<std::mutex> g(d->_lock);
d->internalGetCommonRoot(); d->internalGetCommonRoot();
d->_commonRoot->addUpdateCallback(d.get()); d->_commonRoot->addUpdateCallback(d.get());
d->_commonRoot->setCullingActive(false);
d->_commonRoot->addCullCallback(d->_cullCallback); d->_commonRoot->addCullCallback(d->_cullCallback);
} }