fix: Correct camera orientation for XY and XZ sketch planes

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-09 16:55:56 -07:00
parent ec658360a6
commit bc851585f7

View File

@@ -116,12 +116,12 @@ void ViewportWidget::startSketch(SketchPlane plane)
zoom = -20.0f; // Zoom out to see the grid zoom = -20.0f; // Zoom out to see the grid
switch (plane) { switch (plane) {
case SketchPlane::XY: // Top view case SketchPlane::XY: // Front view
xRot = -90 * 16; xRot = 0;
yRot = 0; yRot = 0;
break; break;
case SketchPlane::XZ: // Front view case SketchPlane::XZ: // Top view
xRot = 0; xRot = -90 * 16;
yRot = 0; yRot = 0;
break; break;
case SketchPlane::YZ: // Right view case SketchPlane::YZ: // Right view