mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #105203 from dennmar/red_axes_fix
Fix smart snapping lines to disappear after using the pivot tool
This commit is contained in:
commit
734fe458ba
1 changed files with 4 additions and 0 deletions
|
|
@ -1524,12 +1524,16 @@ bool CanvasItemEditor::_gui_input_pivot(const Ref<InputEvent> &p_event) {
|
|||
((b.is_valid() && !b->is_pressed() && b->get_button_index() == MouseButton::LEFT && tool == TOOL_EDIT_PIVOT) ||
|
||||
(k.is_valid() && !k->is_pressed() && k->get_keycode() == Key::V))) {
|
||||
_commit_drag();
|
||||
snap_target[0] = SNAP_TARGET_NONE;
|
||||
snap_target[1] = SNAP_TARGET_NONE;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Cancel a drag
|
||||
if (ED_IS_SHORTCUT("canvas_item_editor/cancel_transform", p_event) || (b.is_valid() && b->get_button_index() == MouseButton::RIGHT && b->is_pressed())) {
|
||||
_restore_canvas_item_state(drag_selection);
|
||||
snap_target[0] = SNAP_TARGET_NONE;
|
||||
snap_target[1] = SNAP_TARGET_NONE;
|
||||
_reset_drag();
|
||||
viewport->queue_redraw();
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue