|
|
|
@ -572,7 +572,7 @@ void NpcAnimation::updateParts()
|
|
|
|
|
|
|
|
|
|
int prio = 1;
|
|
|
|
|
bool enchantedGlow = !store->getClass().getEnchantment(*store).empty();
|
|
|
|
|
osg::Vec4f glowColor = getEnchantmentColor(*store);
|
|
|
|
|
osg::Vec4f glowColor = store->getClass().getEnchantmentColor(*store);
|
|
|
|
|
if(store->getTypeName() == typeid(ESM::Clothing).name())
|
|
|
|
|
{
|
|
|
|
|
prio = ((slotlist[i].mBasePriority+1)<<1) + 0;
|
|
|
|
@ -897,7 +897,7 @@ void NpcAnimation::showWeapons(bool showWeapon)
|
|
|
|
|
MWWorld::ConstContainerStoreIterator weapon = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedRight);
|
|
|
|
|
if(weapon != inv.end())
|
|
|
|
|
{
|
|
|
|
|
osg::Vec4f glowColor = getEnchantmentColor(*weapon);
|
|
|
|
|
osg::Vec4f glowColor = weapon->getClass().getEnchantmentColor(*weapon);
|
|
|
|
|
std::string mesh = weapon->getClass().getModel(*weapon);
|
|
|
|
|
addOrReplaceIndividualPart(ESM::PRT_Weapon, MWWorld::InventoryStore::Slot_CarriedRight, 1,
|
|
|
|
|
mesh, !weapon->getClass().getEnchantment(*weapon).empty(), &glowColor);
|
|
|
|
@ -931,7 +931,7 @@ void NpcAnimation::showCarriedLeft(bool show)
|
|
|
|
|
MWWorld::ConstContainerStoreIterator iter = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedLeft);
|
|
|
|
|
if(show && iter != inv.end())
|
|
|
|
|
{
|
|
|
|
|
osg::Vec4f glowColor = getEnchantmentColor(*iter);
|
|
|
|
|
osg::Vec4f glowColor = iter->getClass().getEnchantmentColor(*iter);
|
|
|
|
|
std::string mesh = iter->getClass().getModel(*iter);
|
|
|
|
|
if (addOrReplaceIndividualPart(ESM::PRT_Shield, MWWorld::InventoryStore::Slot_CarriedLeft, 1,
|
|
|
|
|
mesh, !iter->getClass().getEnchantment(*iter).empty(), &glowColor))
|
|
|
|
|