mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 23:53:56 -06:00
Revert "Fix crash when moving the support eraser"
This reverts commit 3a195e9678
.
CURA-6480
This commit is contained in:
parent
3a195e9678
commit
3c43864dac
1 changed files with 2 additions and 6 deletions
|
@ -173,15 +173,11 @@ class PlatformPhysics:
|
||||||
|
|
||||||
if tool.getPluginId() == "TranslateTool":
|
if tool.getPluginId() == "TranslateTool":
|
||||||
for node in Selection.getAllSelectedObjects():
|
for node in Selection.getAllSelectedObjects():
|
||||||
bounding_box = node.getBoundingBox()
|
if node.getBoundingBox().bottom < 0:
|
||||||
if bounding_box is None:
|
|
||||||
continue
|
|
||||||
|
|
||||||
if bounding_box.bottom < 0:
|
|
||||||
if not node.getDecorator(ZOffsetDecorator.ZOffsetDecorator):
|
if not node.getDecorator(ZOffsetDecorator.ZOffsetDecorator):
|
||||||
node.addDecorator(ZOffsetDecorator.ZOffsetDecorator())
|
node.addDecorator(ZOffsetDecorator.ZOffsetDecorator())
|
||||||
|
|
||||||
node.callDecoration("setZOffset", bounding_box.bottom)
|
node.callDecoration("setZOffset", node.getBoundingBox().bottom)
|
||||||
else:
|
else:
|
||||||
if node.getDecorator(ZOffsetDecorator.ZOffsetDecorator):
|
if node.getDecorator(ZOffsetDecorator.ZOffsetDecorator):
|
||||||
node.removeDecorator(ZOffsetDecorator.ZOffsetDecorator)
|
node.removeDecorator(ZOffsetDecorator.ZOffsetDecorator)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue