mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-26 17:06:54 +00:00
Revert "Do not use a separate GlowUpdater for every arrow in quiver"
This reverts commit b7c214b1bc
.
This commit is contained in:
parent
b09f0f8c2d
commit
1f7d2f8da0
1 changed files with 2 additions and 5 deletions
|
@ -274,12 +274,9 @@ void ActorAnimation::updateQuiver()
|
||||||
{
|
{
|
||||||
osg::ref_ptr<osg::Group> arrowNode = ammoNode->getChild(i)->asGroup();
|
osg::ref_ptr<osg::Group> arrowNode = ammoNode->getChild(i)->asGroup();
|
||||||
osg::ref_ptr<osg::Node> arrow = mResourceSystem->getSceneManager()->getInstance(model, arrowNode);
|
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*/)
|
void ActorAnimation::itemAdded(const MWWorld::ConstPtr& item, int /*count*/)
|
||||||
|
|
Loading…
Reference in a new issue