Better Wardrobe and Transmog

Better Wardrobe and Transmog

6M Downloads

Lua error

stornquist opened this issue ยท 0 comments

commented

Ctrlclicking something produces following error.

i added if not playerActor then return end below line 290 which stopped the error but made me have to ctrl-click something twice to inspect it. I have a feeling the call is being made before the playermodel is loaded in the dressup frame, could be solved by a simple C_Timer.After and delay it with like 0.2 seconds or hook the function loading the model.

Message: ...rface\AddOns\BetterWardrobe\Modules\DressingRoom.lua:291: attempt to index local 'playerActor' (a nil value)
Time: Wed Sep 30 12:33:58 2020
Count: 1
Stack: ...rface\AddOns\BetterWardrobe\Modules\DressingRoom.lua:291: attempt to index local 'playerActor' (a nil value)
[string "=[C]"]: ?
[string "@Interface\AddOns\BetterWardrobe\Modules\DressingRoom.lua"]:291: in function `LoadOutfit'
[string "@Interface\AddOns\BetterWardrobe\Modules\SavedOutfits.lua"]:294: in function `SelectOutfit'
[string "@Interface\FrameXML\WardrobeOutfits.lua"]:21: in function <Interface\FrameXML\WardrobeOutfits.lua:18>
[string "=[C]"]: in function `Show'
[string "@Interface\FrameXML\UIParent.lua"]:2740: in function `SetUIPanel'
[string "@Interface\FrameXML\UIParent.lua"]:2649: in function `ShowUIPanel'
[string "@Interface\FrameXML\UIParent.lua"]:2453: in function <Interface\FrameXML\UIParent.lua:2449>
[string "=[C]"]: in function `SetAttribute'
[string "@Interface\FrameXML\UIParent.lua"]:3307: in function `ShowUIPanel'
[string "@Interface\FrameXML\DressUpFrames.lua"]:224: in function `DressUpFrame_Show'
[string "@Interface\FrameXML\DressUpFrames.lua"]:42: in function <Interface\FrameXML\DressUpFrames.lua:40>
[string "=[C]"]: in function `DressUpVisual'
[string "@Interface\FrameXML\DressUpFrames.lua"]:8: in function `DressUpItemLink'
[string "@Interface\FrameXML\ItemButtonTemplate.lua"]:201: in function <Interface\FrameXML\ItemButtonTemplate.lua:181>
[string "=(tail call)"]: ?
[string "@Interface\FrameXML\MerchantFrame.lua"]:589: in function `MerchantItemButton_OnModifiedClick'
[string "*:OnClick"]:2: in function <[string "*:OnClick"]:1>

Locals: