1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-15 00:56:36 +00:00

make sure we apply extra data statesets at right time

This commit is contained in:
Cody Glassman 2025-08-31 11:16:54 -07:00
parent c8eb28331a
commit f2a82701b4

View file

@ -797,10 +797,6 @@ namespace NifOsg
if (nifNode->recType == Nif::RC_NiParticles)
handleParticleSystem(nifNode, parent, node, composite, args.mAnimFlags);
// Apply any extra effects after processing the nodes children and particle system handling
if (!extraData.empty())
handleExtraData(extraData, node);
const bool isNiGeometry = isTypeNiGeometry(nifNode->recType);
const bool isBSGeometry = isTypeBSGeometry(nifNode->recType);
const bool isGeometry = isNiGeometry || isBSGeometry;
@ -832,6 +828,10 @@ namespace NifOsg
}
}
// Apply any extra effects after processing the nodes children and particle system handling
if (!extraData.empty())
handleExtraData(extraData, node);
if (composite->getNumControllers() > 0)
{
osg::Callback* cb = composite;