-
-
Notifications
You must be signed in to change notification settings - Fork 574
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
Test that select tool GRS works with only one anchor #2502
Test that select tool GRS works with only one anchor #2502
Conversation
@0HyperCube Please have a look! |
editor/src/messages/tool/transform_layer/transform_layer_message_handler.rs
Outdated
Show resolved
Hide resolved
@0HyperCube PTAL, If now everything is fine or not? |
async fn test_grs_single_anchor() { | ||
let mut editor = EditorTestUtils::create(); | ||
editor.new_document().await; | ||
editor.drag_tool(ToolType::Rectangle, 100., 100., 200., 200., ModifierKeys::empty()).await; |
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.
Since you've created a rectangle, this will have 4 points already.
You can create an empty layer with no points using DocumentMessage::CreateEmptyFolder
(a folder is the same as a layer).
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.
Oh yeah right!
Just pushing the changes! Thanks for this - DocumentMessage::CreateEmptyFolder
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.
Thanks for adding this test.
Fix a part of #2465