View Single Post
06-02-16, 04:12 PM   #7
galvin
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 265
Well I fixed it, more like a work around. After a profile is changed. I do a C_Timer.After with an extremely small wait time. To do an update on the next frame. The I redraw the bar.

When using blizzards built in animation group scaler the glitch goes away.

The only difference is I use OnUpdate. I create an AnimationGroup to an empty frame. Then I still do AG:Play(), and I do AG:SetScript('OnUpdate'), then inside the onupate I use Animation:GetProgress() and calculate the scale and do a SetScale on the frame I want to modify. if blizzard ever changes their built in scaling to work. Then this problem will fix its self.

For some reason when I stop animation, and draw the bar all in one cycle it glitches out. This mod is very big and does many things. I found stuff like this before when doing stuff with frames in one cycle.