*edit*
IT WORKED...lol on first try.
@haste the "SetCamera 0" settings seems to be deprecated. Try this:
I changed the portrait.lua and male worgen portraits are now fixed.
Seems like: SetPortraitZoom is the new SetCamera.
lua Code:
local Update = function(self, event, unit)
if(not unit or not UnitIsUnit(self.unit, unit)) then return end
local portrait = self.Portrait
if(portrait.PreUpdate) then portrait:PreUpdate(unit) end
if(portrait:IsObjectType'Model') then
local guid = UnitGUID(unit)
if(not UnitExists(unit) or not UnitIsConnected(unit) or not UnitIsVisible(unit)) then
portrait:SetModelScale(4.25)
portrait:SetPosition(0, 0, -1.5)
portrait:SetModel"Interface\\Buttons\\talktomequestionmark.mdx"
elseif(portrait.guid ~= guid or event == 'UNIT_MODEL_CHANGED') then
portrait:SetUnit(unit)
--portrait:SetCamera(0)
portrait:SetPortraitZoom(1)
portrait.guid = guid
else
--portrait:SetCamera(0)
portrait:SetPortraitZoom(1)
end
else
SetPortraitTexture(portrait, unit)
end
if(portrait.PostUpdate) then
return portrait:PostUpdate(unit)
end
end
First worgen male portrait working correctly