Skip to content

Commit

Permalink
Merge pull request #5689 from murraystevenson/dragEditGadget
Browse files Browse the repository at this point in the history
GraphEditor Connection Cutting
  • Loading branch information
johnhaddon authored Mar 5, 2024
2 parents 2cef6f3 + 889c3ea commit 4932b73
Show file tree
Hide file tree
Showing 10 changed files with 603 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
1.4.x.x (relative to 1.4.0.0b1)
=======

Features
--------

- GraphEditor : Added <kbd>X</kbd> shortcut for removing connections between nodules. Hold <kbd>X</kbd> then left click to remove all connections under the cursor. Hold <kbd>X</kbd> then left drag to draw a line, all connections that intersect with the line will be removed once the drag is ended (#788).

Improvements
------------

Expand Down
2 changes: 2 additions & 0 deletions doc/source/Interface/ControlsAndShortcuts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ Disconnect plug | {{leftClick}} and drag connection to back
Insert node onto connection | {{leftClick}} and drag node onto connection
Auto-arrange selected nodes | {kbd}`Ctrl` + {kbd}`L`
Duplicate outgoing connection | {kbd}`Shift` + {{leftClick}} and drag connection just before in plug
Disconnect connections under cursor | {kbd}`X` + {{leftClick}}
Disconnect connections under line | {kbd}`X` + {{leftClick}} and drag to draw a line, then release {{leftClick}}

### Focus Node ###

Expand Down
1 change: 1 addition & 0 deletions include/GafferUI/TypeIds.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ enum TypeId
ToolContainerTypeId = 110291,
FPSGadgetTypeId = 110292,
ViewDisplayTransformTypeId = 110293,
DragEditGadgetTypeId = 110294,

LastTypeId = 110450
};
Expand Down
2 changes: 2 additions & 0 deletions resources/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
"pointerRemove",
"pointerRotate",
"pointerPivot",
"pointerCut",
"pointerNotEditable",
]
},

Expand Down
42 changes: 42 additions & 0 deletions resources/graphics.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4932b73

Please sign in to comment.