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:
@@ -383,7 +383,7 @@ void ViewportWidget::paintGL()
|
|||||||
perpVec = QVector3D(0, -lineVec.z(), lineVec.y()).normalized();
|
perpVec = QVector3D(0, -lineVec.z(), lineVec.y()).normalized();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (angleDiff >= 0) {
|
if (angleDiff < 0) {
|
||||||
perpVec = -perpVec;
|
perpVec = -perpVec;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -720,7 +720,7 @@ void ViewportWidget::paintGL()
|
|||||||
perpVec = QVector3D(0, -lineVec.z(), lineVec.y()).normalized();
|
perpVec = QVector3D(0, -lineVec.z(), lineVec.y()).normalized();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (angleDiff >= 0) {
|
if (angleDiff < 0) {
|
||||||
perpVec = -perpVec;
|
perpVec = -perpVec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user