mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:09:01 +08:00
Revert "Fix crash when moving the support eraser"
This reverts commit 3a195e9678513c8b8b09f341da6746e746b8f9a3. CURA-6480
This commit is contained in:
parent
3a195e9678
commit
3c43864dac
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user