-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
Basic Layer Groups and Timeline Refactor #698
Basic Layer Groups and Timeline Refactor #698
Conversation
…right in Hue Shading mode
…are now hidden when groups are collapsed
…order in the Layer classes a bit
…andle saving/loading the binary image data for each cel type
…re in the hierarchy
…o a single get_children method with a bool for recursive. Added a get_child_count method
…n_CopyFrame_pressed
…ures that was redundant
…ew cels linked on a layer other than the current layer
Currently dragging and dropping a GroupCel to a PixelCel, and vice versa, causes the app to crash. I was thinking that we could disable dragging and dropping for GroupCels completely, unless there is some usage for it? |
Right now there's no reason to drag and drop GroupCels, With the new shader based blending Cel opacity might be enabled on GroupCels which would give something to drag and drop (although not super useful). This should be fixed though as it will also apply for any other future Cel types |
Added a fix for that |
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.
I tested it and couldn't find any other issues, and I don't have any code-related feedback, as I am very happy with the refactoring and how future-proofed the code now is, so I think it is ready to get merged. A fantastic contribution overall that paves the way for even more features in the future. Thank you so much for your hard work!
Creating a draft pull request for now to document changes as I go:
This commit: 8b70b56 conflicted with some changes from this branch, and I kept my changes. I think I fixed this (or a similar issue), so this should be checked.
Groups Refactoring:
(Can do more refactoring in a separate PR if preferred)
Timeline Refactor (copied from the PR onto this PR)
Refactor of how adding/removing/moving Layers, Cels, and Frames works.
Features:
2022-07-21.17-52-46.mp4
(Borrowed the splash screen by Roroto to have a project with lots of frame to test)
2022-07-21.18-17-53.mp4
2022-07-21.18-17-09.mp4
Fixes:
Layer Hierarchy:
is_a_child_of function (recursive)(just reverse it and use is_a_parent_of)File Format:
UI:
(If the layers you're dropping in between have the same parent, it acts the same, but if they're different, this means you can specify which parent to place it in)
Translation .pot File:
Bug Fixes:
Things to work on later: