mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 07:09:02 +08:00
Fix mesh_type being reset when adding a setting
This commit is contained in:
parent
4ce086d5c3
commit
5061a36aba
@ -45,6 +45,7 @@ Item
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
visibility_handler.addSkipResetSetting(currentMeshType)
|
||||||
}
|
}
|
||||||
|
|
||||||
function setOverhangsMeshType()
|
function setOverhangsMeshType()
|
||||||
@ -203,6 +204,7 @@ Item
|
|||||||
|
|
||||||
visibilityHandler: Cura.PerObjectSettingVisibilityHandler
|
visibilityHandler: Cura.PerObjectSettingVisibilityHandler
|
||||||
{
|
{
|
||||||
|
id: visibility_handler
|
||||||
selectedObjectId: UM.ActiveTool.properties.getValue("SelectedObjectId")
|
selectedObjectId: UM.ActiveTool.properties.getValue("SelectedObjectId")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,10 +20,7 @@ UM.Dialog
|
|||||||
// force updating the model to sync it with addedSettingsModel
|
// force updating the model to sync it with addedSettingsModel
|
||||||
if (visible)
|
if (visible)
|
||||||
{
|
{
|
||||||
// Set skip setting, it will prevent from resetting selected mesh_type
|
|
||||||
contents.model.visibilityHandler.addSkipResetSetting(currentMeshType)
|
|
||||||
listview.model.forceUpdate()
|
listview.model.forceUpdate()
|
||||||
|
|
||||||
updateFilter()
|
updateFilter()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user