Browse Source

removing id of checkbox

CURA-10542
saumya.jain 1 year ago
parent
commit
aa2abfbd2e
2 changed files with 3 additions and 1 deletions
  1. 2 0
      cura/PlatformPhysics.py
  2. 1 1
      plugins/3MFReader/WorkspaceDialog.qml

+ 2 - 0
cura/PlatformPhysics.py

@@ -80,9 +80,11 @@ class PlatformPhysics:
 
             # Move it downwards if bottom is above platform
             move_vector = Vector()
+
             if node.getSetting(SceneNodeSettings.AutoDropDown, app_automatic_drop_down) and not (node.getParent() and node.getParent().callDecoration("isGroup") or node.getParent() != root) 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)
+
             # If there is no convex hull for the node, start calculating it and continue.
             if not node.getDecorator(ConvexHullDecorator) and not node.callDecoration("isNonPrintingMesh") and node.callDecoration("getLayerData") is None:
                 node.addDecorator(ConvexHullDecorator())

+ 1 - 1
plugins/3MFReader/WorkspaceDialog.qml

@@ -299,6 +299,7 @@ UM.Dialog
                         }
                     }
                 }
+
                 Row
                 {
                     id: dropToBuildPlate
@@ -307,7 +308,6 @@ UM.Dialog
                     spacing: UM.Theme.getSize("default_margin").width
                     UM.CheckBox
                     {
-                        id: rememberChoiceCheckBox
                         text: catalog.i18nc("@text:window", "Drop models to buildplate")
                         checked: UM.Preferences.getValue("physics/automatic_drop_down") == True
                         onCheckedChanged: UM.Preferences.setValue("physics/automatic_drop_down", checked)