WeakAuras

WeakAuras

200M Downloads

Model's SetTransform API on wotlk ptr seems to have backported DF update

mrbuds opened this issue ยท 0 comments

commented

Description

!Translit found that importing auras on wotlk ptr with models break aura installation process while importing auras linked here https://discord.com/channels/172440238717665280/1061773289674002514/1061773289674002514

img

CreateVector3D exists on both version, so need check difference in API for model's frames:

local frame = CreateFrame("PlayerModel", nil, UIParent)
local l = {}
for k, v in pairs(getmetatable(frame).__index) do -- ty rivers!
   table.insert(l, k)
end
table.sort(l)
print(table.concat(l, ", "))

PTR:

AdjustPointsOffset, AdvanceTime, ApplySpellVisualKit, CanChangeAttribute, CanChangeProtectedState, CanSetUnit, ClearAllPoints, ClearFog, ClearModel, ClearPoint, ClearPointsOffset, ClearTransform, CreateAnimationGroup, CreateFontString, CreateLine, CreateMaskTexture, CreateTexture, DesaturateHierarchy, DisableDrawLayer, DoesClipChildren, EnableDrawLayer, EnableGamePadButton, EnableGamePadStick, EnableKeyboard, EnableMouse, EnableMouseWheel, ExecuteAttribute, FreezeAnimation, GetAlpha, GetAnimationGroups, GetAttribute, GetBottom, GetBoundsRect, GetCameraDistance, GetCameraFacing, GetCameraPosition, GetCameraRoll, GetCameraTarget, GetCenter, GetChildren, GetClampRectInsets, GetDebugName, GetDesaturation, GetDisplayInfo, GetDoBlend, GetDontSavePosition, GetEffectiveAlpha, GetEffectiveScale, GetEffectivelyFlattensRenderLayers, GetFacing, GetFlattensRenderLayers, GetFogColor, GetFogFar, GetFogNear, GetFrameLevel, GetFrameStrata, GetHeight, GetHitRectInsets, GetHyperlinksEnabled, GetID, GetKeepModelOnHide, GetLeft, GetLight, GetModelAlpha, GetModelDrawLayer, GetModelFileID, GetModelScale, GetName, GetNumChildren, GetNumPoints, GetNumRegions, GetObjectType, GetParent, GetParentKey, GetPaused, GetPitch, GetPoint, GetPointByName, GetPosition, GetPropagateKeyboardInput, GetRect, GetRegions, GetResizeBounds, GetRight, GetRoll, GetScale, GetScaledRect, GetScript, GetShadowEffect, GetSize, GetSourceLocation, GetTop, GetViewInsets, GetViewTranslation, GetWidth, GetWorldScale, HasAnimation, HasAttachmentPoints, HasCustomCamera, HasFixedFrameLevel, HasFixedFrameStrata, HasScript, Hide, HookScript, IsAnchoringRestricted, IsClampedToScreen, IsDragging, IsEventRegistered, IsForbidden, IsGamePadButtonEnabled, IsGamePadStickEnabled, IsIgnoringParentAlpha, IsIgnoringParentScale, IsKeyboardEnabled, IsMouseClickEnabled, IsMouseEnabled, IsMouseMotionEnabled, IsMouseOver, IsMouseWheelEnabled, IsMovable, IsObjectLoaded, IsObjectType, IsProtected, IsRectValid, IsResizable, IsShown, IsToplevel, IsUserPlaced, IsUsingModelCenterToTransform, IsVisible, Lower, MakeCurrentCameraCustom, PlayAnimKit, Raise, RefreshCamera, RefreshUnit, RegisterAllEvents, RegisterEvent, RegisterForDrag, RegisterUnitEvent, ReplaceIconTexture, RotateTextures, SetAllPoints, SetAlpha, SetAnimation, SetAttribute, SetAttributeNoHandler, SetBarberShopAlternateForm, SetCamDistanceScale, SetCamera, SetCameraDistance, SetCameraFacing, SetCameraPosition, SetCameraRoll, SetCameraTarget, SetClampRectInsets, SetClampedToScreen, SetClipsChildren, SetCreature, SetCustomCamera, SetCustomRace, SetDesaturation, SetDisplayInfo, SetDoBlend, SetDontSavePosition, SetDrawLayerEnabled, SetFacing, SetFixedFrameLevel, SetFixedFrameStrata, SetFlattensRenderLayers, SetFogColor, SetFogFar, SetFogNear, SetForbidden, SetFrameLevel, SetFrameStrata, SetGlow, SetHeight, SetHitRectInsets, SetHyperlinksEnabled, SetID, SetIgnoreParentAlpha, SetIgnoreParentScale, SetIsFrameBuffer, SetItem, SetItemAppearance, SetKeepModelOnHide, SetLight, SetModel, SetModelAlpha, SetModelDrawLayer, SetModelScale, SetMouseClickEnabled, SetMouseMotionEnabled, SetMovable, SetParent, SetParentKey, SetParticlesEnabled, SetPassThroughButtons, SetPaused, SetPitch, SetPoint, SetPortraitZoom, SetPosition, SetPropagateKeyboardInput, SetResizable, SetResizeBounds, SetRoll, SetRotation, SetScale, SetScript, SetSequence, SetSequenceTime, SetShadowEffect, SetShown, SetSize, SetToplevel, SetTransform, SetUnit, SetUserPlaced, SetViewInsets, SetViewTranslation, SetWidth, Show, StartMoving, StartSizing, StopAnimKit, StopAnimating, StopMovingOrSizing, TransformCameraSpaceToModelSpace, UnregisterAllEvents, UnregisterEvent, UseModelCenterToTransform

Live:

AdjustPointsOffset, AdvanceTime, ApplySpellVisualKit, CanChangeAttribute, CanChangeProtectedState, CanSetUnit, ClearAllPoints, ClearFog, ClearModel, ClearPointByName, ClearPointsOffset, ClearTransform, CreateAnimationGroup, CreateFontString, CreateLine, CreateMaskTexture, CreateTexture, DesaturateHierarchy, DisableDrawLayer, DoesClipChildren, EnableDrawLayer, EnableGamePadButton, EnableGamePadStick, EnableKeyboard, EnableMouse, EnableMouseWheel, ExecuteAttribute, FreezeAnimation, GetAlpha, GetAnimationGroups, GetAttribute, GetBottom, GetBoundsRect, GetCameraDistance, GetCameraFacing, GetCameraPosition, GetCameraRoll, GetCameraTarget, GetCenter, GetChildren, GetClampRectInsets, GetDebugName, GetDepth, GetDesaturation, GetDisplayInfo, GetDoBlend, GetDontSavePosition, GetEffectiveAlpha, GetEffectiveDepth, GetEffectiveScale, GetEffectivelyFlattensRenderLayers, GetFacing, GetFlattensRenderLayers, GetFogColor, GetFogFar, GetFogNear, GetFrameLevel, GetFrameStrata, GetHeight, GetHitRectInsets, GetHyperlinksEnabled, GetID, GetKeepModelOnHide, GetLeft, GetLight, GetMaxResize, GetMinResize, GetModelAlpha, GetModelDrawLayer, GetModelFileID, GetModelScale, GetName, GetNumChildren, GetNumPoints, GetNumRegions, GetObjectType, GetParent, GetPaused, GetPitch, GetPoint, GetPointByName, GetPosition, GetPropagateKeyboardInput, GetRect, GetRegions, GetRight, GetRoll, GetScale, GetScaledRect, GetScript, GetShadowEffect, GetSize, GetSourceLocation, GetTop, GetViewInsets, GetViewTranslation, GetWidth, GetWorldScale, HasAnimation, HasAttachmentPoints, HasCustomCamera, HasFixedFrameLevel, HasFixedFrameStrata, HasScript, Hide, HookScript, IgnoreDepth, IsAnchoringRestricted, IsClampedToScreen, IsDragging, IsEventRegistered, IsForbidden, IsGamePadButtonEnabled, IsGamePadStickEnabled, IsIgnoringDepth, IsIgnoringParentAlpha, IsIgnoringParentScale, IsKeyboardEnabled, IsMouseClickEnabled, IsMouseEnabled, IsMouseMotionEnabled, IsMouseOver, IsMouseWheelEnabled, IsMovable, IsObjectLoaded, IsObjectType, IsProtected, IsRectValid, IsResizable, IsShown, IsToplevel, IsUserPlaced, IsUsingModelCenterToTransform, IsVisible, Lower, MakeCurrentCameraCustom, PlayAnimKit, Raise, RefreshCamera, RefreshUnit, RegisterAllEvents, RegisterEvent, RegisterForDrag, RegisterUnitEvent, ReplaceIconTexture, RotateTextures, SetAllPoints, SetAlpha, SetAnimation, SetAttribute, SetAttributeNoHandler, SetBarberShopAlternateForm, SetCamDistanceScale, SetCamera, SetCameraDistance, SetCameraFacing, SetCameraPosition, SetCameraRoll, SetCameraTarget, SetClampRectInsets, SetClampedToScreen, SetClipsChildren, SetCreature, SetCustomCamera, SetCustomRace, SetDepth, SetDesaturation, SetDisplayInfo, SetDoBlend, SetDontSavePosition, SetDrawLayerEnabled, SetFacing, SetFixedFrameLevel, SetFixedFrameStrata, SetFlattensRenderLayers, SetFogColor, SetFogFar, SetFogNear, SetForbidden, SetFrameBuffer, SetFrameLevel, SetFrameStrata, SetGlow, SetHeight, SetHitRectInsets, SetHyperlinksEnabled, SetID, SetIgnoreParentAlpha, SetIgnoreParentScale, SetItem, SetItemAppearance, SetKeepModelOnHide, SetLight, SetMaxResize, SetMinResize, SetModel, SetModelAlpha, SetModelDrawLayer, SetModelScale, SetMouseClickEnabled, SetMouseMotionEnabled, SetMovable, SetParent, SetParticlesEnabled, SetPaused, SetPitch, SetPoint, SetPortraitZoom, SetPosition, SetPropagateKeyboardInput, SetResizable, SetRoll, SetRotation, SetScale, SetScript, SetSequence, SetSequenceTime, SetShadowEffect, SetShown, SetSize, SetToplevel, SetTransform, SetUnit, SetUserPlaced, SetViewInsets, SetViewTranslation, SetWidth, Show, StartMoving, StartSizing, StopAnimKit, StopAnimating, StopMovingOrSizing, TransformCameraSpaceToModelSpace, UnregisterAllEvents, UnregisterEvent, UseModelCenterToTransform

diff:
image

WeakAuras Version

dev

World of Warcraft Flavor

Retail (Default)

Tested with only WeakAuras

  • Yes
  • No

Lua Error

2x bad argument #2 to '?' (Usage: self:SetTransform([translation, rotation, scale]))
[string "=[C]"]: in function `SetTransformFixed'
[string "@Interface/AddOns/WeakAuras/RegionTypes/Model.lua"]:139: in function <Interface/AddOns/WeakAuras/RegionTypes/Model.lua:124>
[string "@Interface/AddOns/WeakAuras/RegionTypes/Model.lua"]:194: in function <Interface/AddOns/WeakAuras/RegionTypes/Model.lua:191>
[string "@Interface/AddOns/WeakAuras/RegionTypes/Model.lua"]:307: in function `PreShow'
[string "@Interface/AddOns/WeakAuras/RegionTypes/RegionPrototype.lua"]:924: in function `Expand'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:4268: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:4262>
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:4357: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:4319>
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:4467: in function `UpdatedTriggerState'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:4196: in function `UpdateFakeStatesFor'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:4169: in function `FakeStatesFor'
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:3008: in function <Interface/AddOns/WeakAuras/WeakAuras.lua:2873>
[string "@Interface/AddOns/WeakAuras/WeakAuras.lua"]:3031: in function `Add'
[string "@Interface/AddOns/WeakAurasOptions/DisplayOptions.lua"]:186: in function <Interface/AddOns/WeakAurasOptions/DisplayOptions.lua:175>
[string "=[C]"]: ?
[string "@Interface/AddOns/WeakAuras/Libs/AceConfig-3.0-3/AceConfigDialog-3.0-83/AceConfigDialog-3.0.lua"]:51: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:49>
[string "@Interface/AddOns/WeakAuras/Libs/AceConfig-3.0-3/AceConfigDialog-3.0-83/AceConfigDialog-3.0.lua"]:836: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:657>
[string "=[C]"]: ?
[string "@Interface/AddOns/WeakAuras/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:72: in function <...face/AddOns/WeakAuras/Libs/AceGUI-3.0/AceGUI-3.0.lua:70>
[string "@Interface/AddOns/WeakAuras/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:306: in function `Fire'
[string "@Interface/AddOns/WeakAuras/Libs/AceGUI-3.0-41/widgets/AceGUIWidget-CheckBox.lua"]:68: in function <...as/Libs/AceGUI-3.0/widgets/AceGUIWidget-CheckBox.lua:57>

Reproduction Steps

/wa
new model
click SetTransform option

Last Good Version

No response

Screenshots

No response

Export String

No response