fix: Ensure viewport updates and consistent key handling in drawing tools

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-17 11:09:42 -07:00
parent b93f6158ef
commit 9334508b67
2 changed files with 13 additions and 15 deletions

View File

@@ -107,9 +107,7 @@ void RectangleTool::mousePressEvent(QMouseEvent *event)
}
p.SetCoord(worldPos.x(), worldPos.y(), worldPos.z());
emit m_viewport->rectangleAdded(m_firstRectanglePoint, p);
m_isDefiningRectangle = false;
m_viewport->setProperty("widthInput", "");
m_viewport->setProperty("heightInput", "");
deactivate();
}
}