mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:48:58 +08:00
Filter certain settings based on stack type in profile tab
CURA-2214
This commit is contained in:
parent
821c915ce6
commit
f85f7cb62c
@ -169,6 +169,14 @@ class QualitySettingsModel(UM.Qt.ListModel.ListModel):
|
||||
if not profile_value and not user_value:
|
||||
continue
|
||||
|
||||
# If a setting is global (not settable per extruder) and we're looking at an extruder stack, ignore this value.
|
||||
if not UM.Application.getInstance().getGlobalContainerStack().getProperty(definition.key, "settable_per_extruder") and self._extruder_id != "":
|
||||
continue
|
||||
|
||||
# If a setting is settable per extruder and we're looking at global tab, ignore this value.
|
||||
if self._extruder_id == "" and UM.Application.getInstance().getGlobalContainerStack().getProperty(definition.key, "settable_per_extruder"):
|
||||
continue
|
||||
|
||||
self.appendItem({
|
||||
"key": definition.key,
|
||||
"label": definition.label,
|
||||
|
Loading…
x
Reference in New Issue
Block a user