Skip to content

Commit 3cce275

Browse files
committed
Merge pull request godotengine#93527 from matheusmdx/fix-snapping-lines-with-anchors
Fix snapping lines don't disappearing after drag anchors
2 parents 3fbb604 + f746632 commit 3cce275

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

editor/plugins/canvas_item_editor_plugin.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,13 +1687,18 @@ bool CanvasItemEditor::_gui_input_anchors(const Ref<InputEvent> &p_event) {
16871687
_commit_canvas_item_state(
16881688
drag_selection,
16891689
vformat(TTR("Move CanvasItem \"%s\" Anchor"), drag_selection.front()->get()->get_name()));
1690+
snap_target[0] = SNAP_TARGET_NONE;
1691+
snap_target[1] = SNAP_TARGET_NONE;
16901692
_reset_drag();
1693+
viewport->queue_redraw();
16911694
return true;
16921695
}
16931696

16941697
// Cancel a drag
16951698
if (ED_IS_SHORTCUT("canvas_item_editor/cancel_transform", p_event) || (b.is_valid() && b->get_button_index() == MouseButton::RIGHT && b->is_pressed())) {
16961699
_restore_canvas_item_state(drag_selection);
1700+
snap_target[0] = SNAP_TARGET_NONE;
1701+
snap_target[1] = SNAP_TARGET_NONE;
16971702
_reset_drag();
16981703
viewport->queue_redraw();
16991704
return true;

0 commit comments

Comments
 (0)