fix: Prevent snapping indicators when no sketch tool is active
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -316,7 +316,7 @@ void ViewportWidget::mouseMoveEvent(QMouseEvent *event)
|
||||
m_currentMousePos = event->pos();
|
||||
|
||||
bool shouldSnap = false;
|
||||
if (m_currentPlane != SketchPlane::NONE) {
|
||||
if (m_currentPlane != SketchPlane::NONE && m_activeTool != static_cast<int>(ApplicationController::ToolType::None)) {
|
||||
QVector3D worldPos = unproject(m_currentMousePos);
|
||||
const float snapRectHalfSize = 0.0075f * -m_zoom;
|
||||
|
||||
@@ -345,7 +345,7 @@ void ViewportWidget::mouseMoveEvent(QMouseEvent *event)
|
||||
|
||||
bool oldIsSnappingVertex = m_isSnappingVertex;
|
||||
m_isSnappingVertex = false;
|
||||
if (!m_isSnappingOrigin && m_document && m_currentPlane != SketchPlane::NONE) {
|
||||
if (!m_isSnappingOrigin && m_document && m_currentPlane != SketchPlane::NONE && m_activeTool != static_cast<int>(ApplicationController::ToolType::None)) {
|
||||
QVector3D worldPos = unproject(m_currentMousePos);
|
||||
const float snapRectHalfSize = 0.0075f * -m_zoom;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user