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
parent 4c89e8a9d5
commit 676a2e3880

View File

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