diff options
author | Jack Ha <j.ha@ultimaker.com> | 2016-07-18 17:02:24 +0300 |
---|---|---|
committer | Jack Ha <j.ha@ultimaker.com> | 2016-07-18 17:02:24 +0300 |
commit | b3837fbafd5c404fe0219efcdc2dbf007a547eb9 (patch) | |
tree | 1386757b09452fef840d84b476ec8e0e8ae9aecf /cura/PlatformPhysics.py | |
parent | 56efb92f3e58ca88b984c21291a590733afbb087 (diff) |
Raft thickness lowers the build volume.
CURA-1707
Now adding more visuals for better UX.
Diffstat (limited to 'cura/PlatformPhysics.py')
-rw-r--r-- | cura/PlatformPhysics.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py index 0c9c933899..191f7b0e27 100644 --- a/cura/PlatformPhysics.py +++ b/cura/PlatformPhysics.py @@ -40,6 +40,7 @@ class PlatformPhysics: return root = self._controller.getScene().getRoot() + for node in BreadthFirstIterator(root): if node is root or type(node) is not SceneNode or node.getBoundingBox() is None: continue @@ -58,10 +59,7 @@ class PlatformPhysics: move_vector = Vector() if not (node.getParent() and node.getParent().callDecoration("isGroup")): #If an object is grouped, don't move it down z_offset = node.callDecoration("getZOffset") if node.getDecorator(ZOffsetDecorator.ZOffsetDecorator) else 0 - if bbox.bottom > 0: - move_vector = move_vector.set(y=-bbox.bottom + z_offset) - elif bbox.bottom < z_offset: - move_vector = move_vector.set(y=(-bbox.bottom) - z_offset) + move_vector = move_vector.set(y=-bbox.bottom + z_offset) # If there is no convex hull for the node, start calculating it and continue. if not node.getDecorator(ConvexHullDecorator): |