Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChrisTerBeke <c.terbeke@ultimaker.com>2017-09-18 16:37:17 +0300
committerChrisTerBeke <c.terbeke@ultimaker.com>2017-09-18 16:37:17 +0300
commit3db04c918f31e170d1d6f36dbab778c285693a30 (patch)
tree95344884a79424ecdd5a3e061c03260b4ac6e1fe /cura/PlatformPhysics.py
parent18dd63a71004113b11ad7ec3eac52f8229a5aebd (diff)
fixes for reverting 11ebdf730389eca66bafc37be7c6a741c5641f46
Diffstat (limited to 'cura/PlatformPhysics.py')
-rwxr-xr-xcura/PlatformPhysics.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py
index aca91f866a..5eee8d8a55 100755
--- a/cura/PlatformPhysics.py
+++ b/cura/PlatformPhysics.py
@@ -68,15 +68,7 @@ class PlatformPhysics:
# Move it downwards if bottom is above platform
move_vector = Vector()
- # Check if this is the first time a project file node was loaded (disable auto drop in that case), defaults to True
- should_auto_drop = node.getSetting("auto_drop", True)
-
- # This should NOT happen if the scene change was triggered by a tool (like translate), only on project load
- if was_triggered_by_tool:
- should_auto_drop = True
-
- # If a node is grouped or it's loaded from a project file (auto-drop disabled), don't move it down
- if Preferences.getInstance().getValue("physics/automatic_drop_down") and not (node.getParent() and node.getParent().callDecoration("isGroup")) and node.isEnabled() and should_auto_drop:
+ if Preferences.getInstance().getValue("physics/automatic_drop_down") and not (node.getParent() and node.getParent().callDecoration("isGroup")) and node.isEnabled(): #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)