mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 18:36:01 +00:00
portrait: fix animation repaint
This commit is contained in:
+9
-5
@@ -634,14 +634,18 @@ function pfUI.uf:RefreshUnit(unit, component)
|
||||
end
|
||||
this.portrait.tex:Hide()
|
||||
this.portrait.model:Show()
|
||||
this.portrait.model.next:SetUnit(this.label .. this.id)
|
||||
|
||||
if this.portrait.model.lastUnit ~= UnitName(this.label .. this.id)
|
||||
or this.portrait.model:GetModel() ~= this.portrait.model.next:GetModel() then
|
||||
if this.tick then
|
||||
this.portrait.model.next:SetUnit(this.label .. this.id)
|
||||
if this.portrait.model.lastUnit ~= UnitName(this.label .. this.id) or this.portrait.model:GetModel() ~= this.portrait.model.next:GetModel() then
|
||||
this.portrait.model:SetUnit(this.label .. this.id)
|
||||
this.portrait.model.lastUnit = UnitName(this.label .. this.id)
|
||||
this.portrait.model:SetCamera(0)
|
||||
end
|
||||
else
|
||||
this.portrait.model:SetUnit(this.label .. this.id)
|
||||
this.portrait.model.lastUnit = UnitName(this.label .. this.id)
|
||||
this.portrait.model:SetCamera(0)
|
||||
end
|
||||
this.portrait.model:SetCamera(0)
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user