From d6872a65bde871a87d877be7e949e8896fffb445 Mon Sep 17 00:00:00 2001 From: Nino van Hooff Date: Fri, 13 Sep 2019 13:36:30 +0200 Subject: [PATCH] Fix infillOnlyCheckbox not representing mesh type Not a bug but a feature: When the overlays button is clicked, the infill mesh type is set and the checkbox checked CURA-6683 --- .../PerObjectSettingsTool/PerObjectSettingsPanel.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml b/plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml index d3129a5078..b5cc367b11 100644 --- a/plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml +++ b/plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml @@ -41,13 +41,10 @@ Item } function setMeshType(type){ - print("setting mesh type to " + type) UM.ActiveTool.setProperty("MeshType", type) } function updateView(type) { - print("updating view for type " + type) - // set checked state of mesh type buttons normalButton.checked = type === normal_mesh_type supportMeshButton.checked = type === support_mesh_type @@ -146,9 +143,14 @@ Item style: UM.Theme.styles.checkbox; - checked: current_mesh_type === infill_mesh_type visible: current_mesh_type === infill_mesh_type || current_mesh_type === cutting_mesh_type onClicked: setOverhangsMeshType() + + Binding { + target: infillOnlyCheckbox + property: "checked" + value: current_mesh_type === infill_mesh_type + } } Column // Settings Dialog