-
Notifications
You must be signed in to change notification settings - Fork 14
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
add command to group selected nodes #14
base: master
Are you sure you want to change the base?
Conversation
I have short timeframes to work on contributions like these (~30mn at a time), so it'll take me some time to complete this. I'm starting by trying to make the command work well destructively before converting to undo and redo |
fe2f410
to
b614374
Compare
Grouping is now working. There's an error that triggers for some nodes that I need to look into, probably due to the order of the undo redo methods. It's a minor thing, doesn´t prevent the feature from working. Next up is ungrouping. |
Hi, I added ungrouping this morning. There are still some non-blocking undo errors to fix before merging, but could you tell me if the behavior is what you'd expect? I made a short recording with voice to showcase how it works right now: Please let me know if you'd like anything to work differently as part of this PR. When I next have a moment to work on this I'll work on fixing the undo errors that appear in the output. |
Yes, this is working great!
Let me know if you are fine with the changes 2023-06-03.23-24-24.mp4Not sure if this happens to you, but sometime it just doesn't work. It's pretty random, I am not sure what is causing this bug. 2023-06-03.23-13-20.mp4 |
Thanks for adding changes, they're great!
I think it's because I put the input code in _forward_gui_input(), so the shortcut only works when the mouse cursor is hovering the viewport. Moving the code to _input() should fix this. |
Just fixed it! |
All good! |
I could fix the errors when ungrouping nodes. There's one kind of error I don't know how to fix right now: I'll be away for ~2 days but I'll look into it once I'm back |
I'm sorry for the delay, we're swamped with work. It's still on my todo but we have to prioritize our work to ensure we have enough money until the end of the year. So I'm not forgetting this, I'll try to get to it as soon as possible. |
Don't worry, just work in your timeline =) |
…or selecting group node after grouping
0943c87
to
d882f9f
Compare
I hope you'll excuse the very long delay! I've been in a 6+-months crunch, that's still ongoing actually, and I didn't get much time for personal projects (like this contribution). I just got back to this group/ungroup feature and could fix the "UndoRedo mismatch" error: it was due to the order of undo-redo operations, which matter to the system. Now, it should be good to go. Let me know if thereś anything more you'd like me to change. |
Don't worry about that, just take you time =) But there are some issues with ungroup node, which I might had overlooked last time:
undo-ungroup-error.mp4
Btw, I have pushed a commit to remove the "!is_inside_tre()" error when undo "Group Node". |
Thanks for taking the time to test and review :). Great catches! I'm keeping this in my open Github notifications. I've got to find time to tackle it. I'll get to it as soon as possible (which, probably, isn't gonna be very soon..!) |
This PR aims to add group and ungroup commands for selected nodes.
Close #10