bunfan / beat-banger-public

4 stars 1 forks source link

Replacing assets in level editor doesn't change (h, v, total) values of loop in keyframes.cfg #366

Open IonLord opened 3 months ago

IonLord commented 3 months ago

Discord Tag

@sugoisugoma

Issue Description

Let's say in level editor you drag and drop mp4 with 20 frames. It creates spritesheet with 5,4,20 values in keyframes.cfg Then when you drag and drop different video but with the same name it replaces the asset but doesnt change values according to the new video. Even if that new video is 60 frames it will still be 5,4,20 in keyframes.cfg. That wouldn't behave very good, unless the new video has the same frame count.

This is troublesome because sometimes you edit loops to have more or less frames and you want it to be applied to everything at once in loop-heavy mods. The solution to this right now is to either manually replace (h,v,total) values in cfg or just make a new asset and manually replace old loops with new ones So it would be great if you could replace an asset with a new one that has different amount of frames that would be applied automatically in keyframes.cfg for every instance of that loop

OS

Windows

Version

3.51

Modifiers Enabled?

No response

What level or section is the scene present.

No response

Relevant log output

No response