-
-
Notifications
You must be signed in to change notification settings - Fork 578
Migrate the Select tool to the document graph #1433
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
Conversation
!build |
|
!build |
|
!build |
|
!build |
|
!build |
|
!build |
|
How easy would it be to make the Select tool not select the artboard? As soon as I click the artboard, it breaks the rendering of the artwork (but the shape-hover overlays show the current positions after navigating). I also notice the "Empty Stack" node is appearing as a layer in the (still-to-be-rewritten) layer panel, but if it's a real quick change, it'd be nice to temporarily remedy that until I rewrite the layer panel in the next few weeks. |
Fixed @Keavon |
!build |
|
This looks great! Only a few little things I'm noticing:
I think that's all that I directly notice pertaining to the Select tool, so this should be ready to merge pretty soon then! In fact, I'll just push the pivot widget change now so it's in good shape for a review also by @TrueDoctor and then we'll be good to merge. After this, I think the most obvious problems users will encounter in this branch is that artboards should be fed into from a layer stack, rather than living at the base of a layer stack; and that selecting a layer in the node graph doesn't show the upstream nodes in the Properties panel. But those are both fine to fix in a separate PR and are probably somewhat approachable by new contributors. Thank you so much for this! |
!build |
1 similar comment
!build |
|
I'm not quite happy with the overall approach of relying on node names for special behaviour. We could potentially add a dedicated node tag (or just in general some sort of tagging system) to make the system a bit more robust. |
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.
21 files left to review, will continue asap
editor/src/messages/portfolio/document/document_message_handler.rs
Outdated
Show resolved
Hide resolved
editor/src/messages/portfolio/document/document_message_handler.rs
Outdated
Show resolved
Hide resolved
editor/src/messages/portfolio/document/node_graph/graph_operation_message_handler.rs
Outdated
Show resolved
Hide resolved
I have previously mentioned that the approach of relying on node names and input indices is not robust.
This approach should work fine if there are any sort of transform nodes downstream. I forgot about other nodes being downstream, so we probably need some slight code changes to handle this. Also we may potentially need to fix the code for adjusting the translation (so that the shape appears to stay still as the bounding box is changed in the path tool) to work with custom transform nodes.
Is there any error logs? Does it still happen when you save and then reload? Do the layers still appear in the layer tree? If you drag a connection between two nodes in the graph UI then does anything change (this causes the layer tree to be recomputed)? |
!build |
|
!build |
|
41063eb
to
b727536
Compare
!build |
|
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.
QA looks great!
* function for accessing document metadata * Better select tool * Fix render * Fix transforms * Fix loading saved documents * Populate graph UI when loading autosave * Multiple transform nodes * Fix deep select * Graph tooltips * Fix flip axis icon * Show disabled widgets * Stop select tool from selecting artboards * Disable (not hide) the pivot widget; remove Deep/Shallow select for now * Code review changes * Fix pivot position with select tool * Fix incorrectly selected layers when shift clicking --------- Co-authored-by: Dennis Kobert <[email protected]> Co-authored-by: Keavon Chambers <[email protected]>
* function for accessing document metadata * Better select tool * Fix render * Fix transforms * Fix loading saved documents * Populate graph UI when loading autosave * Multiple transform nodes * Fix deep select * Graph tooltips * Fix flip axis icon * Show disabled widgets * Stop select tool from selecting artboards * Disable (not hide) the pivot widget; remove Deep/Shallow select for now * Code review changes * Fix pivot position with select tool * Fix incorrectly selected layers when shift clicking --------- Co-authored-by: Dennis Kobert <[email protected]> Co-authored-by: Keavon Chambers <[email protected]>
TODO: