Skip to content

Commit

Permalink
CraterCrashGH-368 Use Shift+LMB to place knots, Ctrl+LMB to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed May 27, 2024
1 parent 3f2f461 commit 3b6ecc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/editor/graph/graph_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ void OrchestratorGraphEdit::_gui_input(const Ref<InputEvent>& p_event)
_hovered_connection = get_closest_connection_at_point(mm->get_position());
if (!_hovered_connection.is_empty())
{
_show_drag_hint("Use Ctrl+LMB to add a knot to the connection.\n"
_show_drag_hint("Use Shift+LMB to add a knot to the connection.\n"
"Hover over an existing knot and pressing Ctrl+LMB will remove it.");
}
}
Expand All @@ -519,9 +519,9 @@ void OrchestratorGraphEdit::_gui_input(const Ref<InputEvent>& p_event)
{
if (mb->get_button_index() == MOUSE_BUTTON_LEFT && mb->is_pressed())
{
if (mb->get_modifiers_mask().has_flag(KEY_MASK_CTRL))
if (mb->get_modifiers_mask().has_flag(KEY_MASK_SHIFT))
{
// CTRL+LMB adds a knot to the connection that can then be moved.
// SHIFT+LMB adds a knot to the connection that can then be moved.
if (!_hovered_connection.is_empty())
_create_connection_knot(_hovered_connection, mb->get_position());
}
Expand Down

0 comments on commit 3b6ecc0

Please sign in to comment.