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:
authorLipu Fei <lipu.fei815@gmail.com>2019-04-24 12:28:50 +0300
committerLipu Fei <lipu.fei815@gmail.com>2019-04-24 12:28:50 +0300
commit3c43864daca64152c371b3a4f9fae08a67a02ebf (patch)
tree5288ca9a4ab3cfd596ebc7c591b9360e9914793b /cura/PlatformPhysics.py
parent3a195e9678513c8b8b09f341da6746e746b8f9a3 (diff)
Revert "Fix crash when moving the support eraser"
This reverts commit 3a195e9678513c8b8b09f341da6746e746b8f9a3. CURA-6480
Diffstat (limited to 'cura/PlatformPhysics.py')
-rwxr-xr-xcura/PlatformPhysics.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py
index 2710aad91e..8fffac4501 100755
--- a/cura/PlatformPhysics.py
+++ b/cura/PlatformPhysics.py
@@ -173,15 +173,11 @@ class PlatformPhysics:
if tool.getPluginId() == "TranslateTool":
for node in Selection.getAllSelectedObjects():
- bounding_box = node.getBoundingBox()
- if bounding_box is None:
- continue
-
- if bounding_box.bottom < 0:
+ if node.getBoundingBox().bottom < 0:
if not node.getDecorator(ZOffsetDecorator.ZOffsetDecorator):
node.addDecorator(ZOffsetDecorator.ZOffsetDecorator())
- node.callDecoration("setZOffset", bounding_box.bottom)
+ node.callDecoration("setZOffset", node.getBoundingBox().bottom)
else:
if node.getDecorator(ZOffsetDecorator.ZOffsetDecorator):
node.removeDecorator(ZOffsetDecorator.ZOffsetDecorator)