-
-
Notifications
You must be signed in to change notification settings - Fork 385
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
Fix artboard deletion #1651
Fix artboard deletion #1651
Conversation
!build |
|
Nice work on the core functionality! Just one bug I notice if I draw several artboards, selecting one with the Artboard tool and deleting it causes the others to disappear (from getting disconnected in the graph). I think this is still the case in master so you didn't cause a regression, but since this is related to that bug I'd appreciate it if you'd help investigate and fix that here too. (Or feel free to say no, it can also be a followup PR.) capture.mp4 |
258cec6
to
7a9c5bd
Compare
!build |
|
editor/src/messages/portfolio/document/node_graph/graph_operation_message_handler.rs
Outdated
Show resolved
Hide resolved
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.
- The code you've added in
graph_operation_message_handler.rs
is pretty complicated to read, that is, how it works isn't obvious from reading it without having to analyze it pretty closely. Could you add some comments to each line/block of lines explaining what each line/block does? Something to summarize their purposes. Thanks. - Document > Clear Artboards crashes. To reproduce: create a new document with the default artboard; use the Artboard tool to draw a new artboard; click Clear Artboards and you'll see it crashes.
I'm marking this as draft for the moment, please mark it as ready for review again when you're ready, and also ping me so I notice it's ready again. Thanks. |
6377048
to
57b235e
Compare
57b235e
to
b3bc4c9
Compare
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.
Nice work on this one! It's definitely a valuable addition to Graphite :)
This PR ensures that:
Document > Clear Artboards
does not delete its childrenArtboard Tool > Delete
does not delete its childrenCloses #1505.