Merge pull request #2483 from akortunov/master

Revert "Do not use a separate GlowUpdater for every arrow in quiver"
pull/541/head
Andrei Kortunov 5 years ago committed by GitHub
commit 75fc57d1d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -274,12 +274,9 @@ void ActorAnimation::updateQuiver()
{
osg::ref_ptr<osg::Group> arrowNode = ammoNode->getChild(i)->asGroup();
osg::ref_ptr<osg::Node> arrow = mResourceSystem->getSceneManager()->getInstance(model, arrowNode);
if (!ammo->getClass().getEnchantment(*ammo).empty())
mGlowUpdater = SceneUtil::addEnchantedGlow(arrow, mResourceSystem, glowColor);
}
// Assign GlowUpdater for ammo sheathing bone itself to do not attach it to every arrow
ammoNode->setUpdateCallback(nullptr);
if (ammoCount > 0 && !ammo->getClass().getEnchantment(*ammo).empty())
SceneUtil::addEnchantedGlow(ammoNode, mResourceSystem, glowColor);
}
void ActorAnimation::itemAdded(const MWWorld::ConstPtr& item, int /*count*/)

Loading…
Cancel
Save