mirror of
https://github.com/Ultimaker/Cura.git
synced 2026-02-14 20:59:28 -07:00
Prevent non printing meshes from affecting layer positions
This commit is contained in:
parent
6ecfbcb222
commit
9080d9cf73
1 changed files with 9 additions and 3 deletions
|
|
@ -280,9 +280,15 @@ class StartSliceJob(Job):
|
|||
if transform_matrix:
|
||||
verts = transformVertices(verts, transform_matrix)
|
||||
|
||||
_front_offset = verts[:, 1].min()
|
||||
if front_offset is None or _front_offset < front_offset:
|
||||
front_offset = _front_offset
|
||||
per_object_stack = object.callDecoration("getStack")
|
||||
is_non_printing_mesh = False
|
||||
if per_object_stack:
|
||||
is_non_printing_mesh = any(per_object_stack.getProperty(key, "value") for key in NON_PRINTING_MESH_SETTINGS)
|
||||
|
||||
if not is_non_printing_mesh:
|
||||
_front_offset = verts[:, 1].min()
|
||||
if front_offset is None or _front_offset < front_offset:
|
||||
front_offset = _front_offset
|
||||
|
||||
# Convert from Y up axes to Z up axes. Equals a 90 degree rotation.
|
||||
verts[:, [1, 2]] = verts[:, [2, 1]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue