Might as well hide the portrait if the texture doesn't get set
Scott Sibley [10-02-10 - 21:37]
Might as well hide the portrait if the texture doesn't get set
diff --git a/Modules/Portrait/Portrait.lua b/Modules/Portrait/Portrait.lua
index 4045158..fa484f7 100644
--- a/Modules/Portrait/Portrait.lua
+++ b/Modules/Portrait/Portrait.lua
@@ -102,7 +102,11 @@ function mod:SetUnit()
SetPortraitTexture(self.texture, StarTip.unit)
- if not self.texture:GetTexture() then return end
+ if not self.texture:GetTexture() then
+ model:Hide()
+ self.texture:Hide()
+ return
+ end
if self.db.profile.animated then
model:SetUnit(StarTip.unit)