Browse Source

Hide smart snapping line when guideline dragging ends

(cherry picked from commit b255efba7cbcc3757d5489b63ae4bbe79db954f4)
Haoyu Qiu 3 years ago
parent
commit
36ec71bcef
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/plugins/canvas_item_editor_plugin.cpp

+ 2 - 0
editor/plugins/canvas_item_editor_plugin.cpp

@@ -1241,6 +1241,8 @@ bool CanvasItemEditor::_gui_input_rulers_and_guides(const Ref<InputEvent> &p_eve
 					}
 					}
 				}
 				}
 			}
 			}
+			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;