make sure we apply extra data statesets at right time
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user