diff options
author | fieldOfView <aldo@fieldofview.com> | 2016-08-28 17:30:22 +0300 |
---|---|---|
committer | fieldOfView <aldo@fieldofview.com> | 2016-08-28 17:30:22 +0300 |
commit | 7a1f7b36543facc94e7b245f1180a762668e5e32 (patch) | |
tree | 8b7482d7a16f567694cff446ea2e33e77dce0f85 /cura/PlatformPhysics.py | |
parent | 30a679ddf9019aad721e8b1deccd7e453a216683 (diff) |
Make automatic drop to buildplate optional.
Diffstat (limited to 'cura/PlatformPhysics.py')
-rw-r--r-- | cura/PlatformPhysics.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py index 32d541f8d6..2a42765d3f 100644 --- a/cura/PlatformPhysics.py +++ b/cura/PlatformPhysics.py @@ -31,6 +31,7 @@ class PlatformPhysics: self._change_timer.timeout.connect(self._onChangeTimerFinished) Preferences.getInstance().addPreference("physics/automatic_push_free", True) + Preferences.getInstance().addPreference("physics/automatic_drop_down", True) def _onSceneChanged(self, source): self._change_timer.start() @@ -68,7 +69,7 @@ class PlatformPhysics: # Move it downwards if bottom is above platform move_vector = Vector() - if not (node.getParent() and node.getParent().callDecoration("isGroup")): #If an object is grouped, don't move it down + if Preferences.getInstance().getValue("physics/automatic_drop_down") and 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 move_vector = move_vector.set(y=-bbox.bottom + z_offset) |