Page 1 of 1

Frame delays when modifying an animation

Posted: Sun Mar 19, 2017 12:42 pm
by jPV
If you remove frames, frame delays aren't modified accordingly.

Code: Select all

LoadAnim(1,"Hollywood:MUIRoyale/Examples/Hollywood/Anim/Amy_Walks.anim")
DebugPrint("Original delays:")
For i=1 To 3
    DebugPrint("Delay of frame "..i..":",GetAttribute(#ANIM,1,#ATTRFRAMEDELAY, i))
Next
DebugPrint("After removing the first frame:")
ModifyAnimFrames(1,-1,1)
For i=1 To 3
    DebugPrint("Delay of frame "..i..":",GetAttribute(#ANIM,1,#ATTRFRAMEDELAY, i))
Next
This outputs:
Original delays:
Delay of frame 1: 0
Delay of frame 2: 16
Delay of frame 3: 16
After removing the first frame:
Delay of frame 1: 0
Delay of frame 2: 16
Delay of frame 3: 16

I tried to remove the first frame which has a delay of 0. One would think that the second frame would become as the first frame and maintain its own delay. Instead of that the original frame delays stick at the original frame positions no matter what you remove in between.

Re: Frame delays when modifying an animation

Posted: Tue Mar 21, 2017 12:08 am
by airsoftsoftwair
Right, will be fixed, thanks for reporting!

Re: Frame delays when modifying an animation

Posted: Thu Apr 27, 2017 6:41 pm
by airsoftsoftwair
This was actually the same bug as this. Fixed now.