-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include animation frames in tile atlas merge. #77316
Conversation
e436ee1
to
d6bc3a4
Compare
Sorry, I am doing something wrong obviously... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally (rebased on top of master
b6ba664), I see something completely different when testing with the MRP you linked in the issue. I'm using the atlas merging tool in TileMapAnimation.tscn
's TileMap node in the TileSet bottom panel.
master
This PR
it only seems to work if animations in dst... i guess it needs the same kinda fixes for when animations in src |
b2634b1
to
e16a801
Compare
c76eed7
to
2e779c2
Compare
ya sorry it is taking all the frames at least, but new atlas after merge not have animation setup just single frame... will try to get that working too edit: thanks. all frames are coped, and now all animation data is copied too... seems to work fine |
2e779c2
to
ee174b3
Compare
Editor crashes if the animation has more rows:
In the issue's MRP change columns of the lower animation to 3 and try to merge it. |
fc73261
to
ae574b0
Compare
fixed the brackets and pixel offset...
Edit: ya still crashing... with animation_columns. I think it is because am failing to account for changes to atlas_size.y when columns causes extra rows... |
9904115
to
73bfd0c
Compare
Fixed the crash (maybe) by dealing with extra rows added by animation columns...
Edit: Also will prob need to deal better / fix animation_separation and get rid of that or account for it in atlas size too. Separation is removed so animation separation should be too right? |
73bfd0c
to
8be28cf
Compare
8be28cf
to
c17848f
Compare
Thanks! |
dst_rect_wide
was the same for each frame so kept getting overwritten in the output image I think?This adjusts
dst_rect_wide
based on separation and columns and frames.Closes: #58342
Thanks.
Before:
After: