Skip to content
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

Merged
merged 7 commits into from
Mar 16, 2024
Merged

Conversation

skoriop
Copy link
Collaborator

@skoriop skoriop commented Mar 5, 2024

This PR ensures that:

  • Document > Clear Artboards does not delete its children
  • Artboard Tool > Delete does not delete its children

Closes #1505.

@skoriop skoriop marked this pull request as ready for review March 5, 2024 22:18
@Keavon
Copy link
Member

Keavon commented Mar 5, 2024

!build

Copy link

github-actions bot commented Mar 5, 2024

📦 Build Complete for 3b4ee6d
https://64829471.graphite.pages.dev

@Keavon
Copy link
Member

Keavon commented Mar 5, 2024

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

@Keavon Keavon force-pushed the fix-clear-artboards branch 2 times, most recently from 258cec6 to 7a9c5bd Compare March 8, 2024 22:51
@Keavon
Copy link
Member

Keavon commented Mar 8, 2024

!build

Copy link

github-actions bot commented Mar 8, 2024

📦 Build Complete for 7a9c5bd
https://3cd36118.graphite.pages.dev

Copy link
Member

@Keavon Keavon left a 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.

@Keavon Keavon marked this pull request as draft March 9, 2024 03:18
@Keavon
Copy link
Member

Keavon commented Mar 9, 2024

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.

@skoriop skoriop marked this pull request as ready for review March 16, 2024 07:32
Copy link
Member

@Keavon Keavon left a 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 :)

@Keavon Keavon merged commit 8bc389a into GraphiteEditor:master Mar 16, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document > Clear Artboards should not delete its children
2 participants