|
|
@ -671,8 +671,6 @@ PartHolderPtr NpcAnimation::insertBoundedPart(const std::string& model, const st
|
|
|
|
{
|
|
|
|
{
|
|
|
|
osg::ref_ptr<osg::Node> instance = mResourceSystem->getSceneManager()->getInstance(model);
|
|
|
|
osg::ref_ptr<osg::Node> instance = mResourceSystem->getSceneManager()->getInstance(model);
|
|
|
|
osg::ref_ptr<osg::Node> attached = SceneUtil::attach(instance, mObjectRoot, bonefilter, bonename);
|
|
|
|
osg::ref_ptr<osg::Node> attached = SceneUtil::attach(instance, mObjectRoot, bonefilter, bonename);
|
|
|
|
if (mSkeleton)
|
|
|
|
|
|
|
|
mSkeleton->markDirty();
|
|
|
|
|
|
|
|
mResourceSystem->getSceneManager()->notifyAttached(attached);
|
|
|
|
mResourceSystem->getSceneManager()->notifyAttached(attached);
|
|
|
|
if (enchantedGlow)
|
|
|
|
if (enchantedGlow)
|
|
|
|
addGlow(attached, *glowColor);
|
|
|
|
addGlow(attached, *glowColor);
|
|
|
|