Frame delays when modifying an animation

Report any Hollywood bugs here
Post Reply
User avatar
jPV
Posts: 603
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Frame delays when modifying an animation

Post 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.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Frame delays when modifying an animation

Post by airsoftsoftwair »

Right, will be fixed, thanks for reporting!
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Frame delays when modifying an animation

Post by airsoftsoftwair »

This was actually the same bug as this. Fixed now.
Post Reply