forked from 1b-agent/opencadstudio-upstream
Fix: MVIEW preview rectangle drawn in XZ plane instead of XY
The preview rectangle used c1.y (constant) for all four corners and pt.z for Z instead of c1.z. Corners 3 and 4 now correctly use pt.y (varying Y) and the constant c1.z, producing a proper XY-plane rectangle. Fixed in both layout/mview.rs and manage/mview.rs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
9cee12d1c7
commit
a0596a14ff
2 files changed
+4
-4
No files matched your search
@@ -84,8 +84,8 @@ impl CadCommand for MviewCommand {
|
||||
points: vec![
|
||||
[c1.x, c1.y, c1.z],
|
||||
[pt.x, c1.y, c1.z],
|
||||
[pt.x, c1.y, pt.z],
|
||||
[c1.x, c1.y, pt.z],
|
||||
[pt.x, pt.y, c1.z],
|
||||
[c1.x, pt.y, c1.z],
|
||||
[c1.x, c1.y, c1.z],
|
||||
],
|
||||
color: WireModel::CYAN,
|
||||
|
||||
@@ -78,8 +78,8 @@ impl CadCommand for MviewCommand {
|
||||
points: vec![
|
||||
[c1.x, c1.y, c1.z],
|
||||
[pt.x, c1.y, c1.z],
|
||||
[pt.x, c1.y, pt.z],
|
||||
[c1.x, c1.y, pt.z],
|
||||
[pt.x, pt.y, c1.z],
|
||||
[c1.x, pt.y, c1.z],
|
||||
[c1.x, c1.y, c1.z],
|
||||
],
|
||||
color: WireModel::CYAN,
|
||||
|
||||
Reference in new issue
Block a user