This commit is contained in:
Bunny67
2020-09-14 10:12:22 +03:00
parent 6c3f9d925e
commit 0f4f16b6f0
71 changed files with 2302 additions and 2431 deletions
+6 -6
View File
@@ -274,13 +274,13 @@ local function modify(parent, region, data)
local function onUpdate()
if (not region.startTime) then return end
WeakAuras.StartProfileAura(region.id);
WeakAuras.StartProfileSystem("stopmotion")
Private.StartProfileAura(region.id);
Private.StartProfileSystem("stopmotion")
local timeSinceStart = (GetTime() - region.startTime);
local newCurrentFrame = floor(timeSinceStart * (data.frameRate or 15));
if (newCurrentFrame == region.currentFrame) then
WeakAuras.StopProfileAura(region.id);
WeakAuras.StopProfileSystem("stopmotion")
Private.StopProfileAura(region.id);
Private.StopProfileSystem("stopmotion")
return;
end
@@ -339,8 +339,8 @@ local function modify(parent, region, data)
end
region.foreground:SetFrame(data.foregroundTexture, frame);
WeakAuras.StopProfileAura(region.id);
WeakAuras.StopProfileSystem("stopmotion")
Private.StopProfileAura(region.id);
Private.StopProfileSystem("stopmotion")
end;
region.FrameTick = onUpdate;