mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 16:48:58 +08:00
Fix elliptic buildplate mesh when machine_height != machine_width
Silly y/z mixup.
This commit is contained in:
parent
c561395cf2
commit
eef6a98da7
@ -225,7 +225,7 @@ class BuildVolume(SceneNode):
|
|||||||
scale_matrix = Matrix()
|
scale_matrix = Matrix()
|
||||||
if self._width != 0:
|
if self._width != 0:
|
||||||
# Scale circular meshes by aspect ratio if width != height
|
# Scale circular meshes by aspect ratio if width != height
|
||||||
aspect = self._height / self._width
|
aspect = self._depth / self._width
|
||||||
scale_matrix.compose(scale = Vector(1, 1, aspect))
|
scale_matrix.compose(scale = Vector(1, 1, aspect))
|
||||||
mb = MeshBuilder()
|
mb = MeshBuilder()
|
||||||
mb.addArc(max_w, Vector.Unit_Y, center = (0, min_h - z_fight_distance, 0), color = self.VolumeOutlineColor)
|
mb.addArc(max_w, Vector.Unit_Y, center = (0, min_h - z_fight_distance, 0), color = self.VolumeOutlineColor)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user