Merge pull request #32341 from KoBeWi/be_gone
Clean snapping lines after resize
This commit is contained in:
commit
e426169e4c
1 changed files with 5 additions and 0 deletions
|
@ -1749,6 +1749,9 @@ bool CanvasItemEditor::_gui_input_resize(const Ref<InputEvent> &p_event) {
|
||||||
if (key_auto_insert_button->is_pressed()) {
|
if (key_auto_insert_button->is_pressed()) {
|
||||||
_insert_animation_keys(false, false, true, true);
|
_insert_animation_keys(false, false, true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
snap_target[0] = SNAP_TARGET_NONE;
|
||||||
|
snap_target[1] = SNAP_TARGET_NONE;
|
||||||
drag_type = DRAG_NONE;
|
drag_type = DRAG_NONE;
|
||||||
viewport->update();
|
viewport->update();
|
||||||
return true;
|
return true;
|
||||||
|
@ -1757,6 +1760,8 @@ bool CanvasItemEditor::_gui_input_resize(const Ref<InputEvent> &p_event) {
|
||||||
// Cancel a drag
|
// Cancel a drag
|
||||||
if (b.is_valid() && b->get_button_index() == BUTTON_RIGHT && b->is_pressed()) {
|
if (b.is_valid() && b->get_button_index() == BUTTON_RIGHT && b->is_pressed()) {
|
||||||
_restore_canvas_item_state(drag_selection);
|
_restore_canvas_item_state(drag_selection);
|
||||||
|
snap_target[0] = SNAP_TARGET_NONE;
|
||||||
|
snap_target[1] = SNAP_TARGET_NONE;
|
||||||
drag_type = DRAG_NONE;
|
drag_type = DRAG_NONE;
|
||||||
viewport->update();
|
viewport->update();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue