From 1f7d2f8da038c80d48a4b037b9724c20d3bc5173 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Fri, 9 Aug 2019 21:38:03 +0400 Subject: [PATCH] Revert "Do not use a separate GlowUpdater for every arrow in quiver" This reverts commit b7c214b1bc395c5ae7291d1e14ef46b834652a3a. --- apps/openmw/mwrender/actoranimation.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/openmw/mwrender/actoranimation.cpp b/apps/openmw/mwrender/actoranimation.cpp index 330c5a6784..abc2e4eb36 100644 --- a/apps/openmw/mwrender/actoranimation.cpp +++ b/apps/openmw/mwrender/actoranimation.cpp @@ -274,12 +274,9 @@ void ActorAnimation::updateQuiver() { osg::ref_ptr arrowNode = ammoNode->getChild(i)->asGroup(); osg::ref_ptr 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*/)