Merge pull request #2202 from Capostrophic/icon

Fix enchanted item icon update
pull/541/head
Bret Curtis 6 years ago committed by GitHub
commit aa513bba29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -156,12 +156,19 @@ namespace MWGui
void SpellWidget::setSpellIcon(const std::string& icon)
{
if (mFrame)
if (mFrame && !mCurrentFrame.empty())
{
mCurrentFrame.clear();
mFrame->setImageTexture("");
}
if (mCurrentIcon != icon)
{
mCurrentIcon = icon;
if (mItemShadow)
mItemShadow->setImageTexture(icon);
if (mItem)
mItem->setImageTexture(icon);
}
}
}

Loading…
Cancel
Save