fix: Correctly place dimension labels based on angle difference

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-16 20:32:23 -07:00
parent 7f304bf1f3
commit ed88730edb

View File

@@ -383,7 +383,7 @@ void ViewportWidget::paintGL()
perpVec = QVector3D(0, -lineVec.z(), lineVec.y()).normalized();
}
if (angleDiff >= 0) {
if (angleDiff < 0) {
perpVec = -perpVec;
}
@@ -720,7 +720,7 @@ void ViewportWidget::paintGL()
perpVec = QVector3D(0, -lineVec.z(), lineVec.y()).normalized();
}
if (angleDiff >= 0) {
if (angleDiff < 0) {
perpVec = -perpVec;
}