-
Notifications
You must be signed in to change notification settings - Fork 96
Added the MMB option to the Connect command #613
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
base: master
Are you sure you want to change the base?
Conversation
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.
Pull request overview
This PR adds a middle mouse button (MMB) option to the Connect command in Wings3D, enabling users to dynamically increase the number of parallel edges by dragging the mouse. The implementation required modifications to the dragging system to properly update the model state and selection after command completion.
Key Changes:
- Adds
connect_multiplecommand that creates multiple parallel edges with interactive count adjustment - Introduces a new
countunit type to the drag system for integer-based adjustments - Updates the normalize functions to track and update selection state during drag operations
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| src/wings_edge_cmd.erl | Adds connect_multiple command with interactive edge count adjustment via dragging; updates menu tooltips for the Connect command |
| src/wings_drag.erl | Introduces count unit type with integer limits; updates normalize functions to track selection changes during drag operations; adds support for count display in help messages |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I have let co-pilot review this, fix stuff that seems valid and write when your are done, or nothing needs fixing. |
…ally increase the amount of cut;
updated on screen. That happens when an operation add more elements dynamically, like in this code which we add multiple connections that bacome selected for better feedback.
are integer values which was not handled before.
4c91996 to
0f65bbe
Compare
I spent two days traying to add an MMB option to the Connect command that could
allow us to connect edges multiple times by dragging the mouse on screen as we
use to do other adjustments.
The way the dragging code works currently doesn't updates correctly the model after
we finish the command. So, I changed it a little and it's working gracefully now.
It was required to check for selection changes as well as force dlist to be invalidated.
I hope you can approve this change or suggest a better way to achieve the result. This
kind of dynamic update could be used in other commands we can add further.
NOTE: Added the MMB option to the Connect command, allowing us to dynamically
increase the amount of cut;