removing id of checkbox

CURA-10542
This commit is contained in:
saumya.jain 2024-02-09 15:15:44 +01:00
parent 91a84674f0
commit aa2abfbd2e
2 changed files with 3 additions and 1 deletions

View file

@ -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())

View file

@ -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)