mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
feat: use settable_per_[mesh|extruder|meshgroup|globally] instead of global_only (CURA-1560)
This commit is contained in:
parent
fc0a3c8347
commit
2e2437d163
2 changed files with 7 additions and 4 deletions
|
@ -91,7 +91,10 @@ class CuraApplication(QtApplication):
|
||||||
self._open_file_queue = [] # Files to open when plug-ins are loaded.
|
self._open_file_queue = [] # Files to open when plug-ins are loaded.
|
||||||
|
|
||||||
# Need to do this before ContainerRegistry tries to load the machines
|
# Need to do this before ContainerRegistry tries to load the machines
|
||||||
SettingDefinition.addSupportedProperty("global_only", DefinitionPropertyType.Function, default = False)
|
SettingDefinition.addSupportedProperty("settable_per_mesh", DefinitionPropertyType.Function, default = True)
|
||||||
|
SettingDefinition.addSupportedProperty("settable_per_extruder", DefinitionPropertyType.Function, default = True)
|
||||||
|
SettingDefinition.addSupportedProperty("settable_per_meshgroup", DefinitionPropertyType.Function, default = True)
|
||||||
|
SettingDefinition.addSupportedProperty("settable_globally", DefinitionPropertyType.Function, default = True)
|
||||||
SettingDefinition.addSettingType("extruder", int, str, UM.Settings.Validator)
|
SettingDefinition.addSettingType("extruder", int, str, UM.Settings.Validator)
|
||||||
|
|
||||||
super().__init__(name = "cura", version = CuraVersion, buildtype = CuraBuildType)
|
super().__init__(name = "cura", version = CuraVersion, buildtype = CuraBuildType)
|
||||||
|
|
|
@ -190,11 +190,11 @@ Item {
|
||||||
{
|
{
|
||||||
if(text != "")
|
if(text != "")
|
||||||
{
|
{
|
||||||
listview.model.filter = {"global_only": false, "label": "*" + text}
|
listview.model.filter = {"settable_per_mesh": true, "label": "*" + text}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
listview.model.filter = {"global_only": false}
|
listview.model.filter = {"settable_per_mesh": true}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -219,7 +219,7 @@ Item {
|
||||||
containerId: Cura.MachineManager.activeDefinitionId
|
containerId: Cura.MachineManager.activeDefinitionId
|
||||||
filter:
|
filter:
|
||||||
{
|
{
|
||||||
"global_only": false
|
"settable_per_mesh": true
|
||||||
}
|
}
|
||||||
visibilityHandler: UM.SettingPreferenceVisibilityHandler {}
|
visibilityHandler: UM.SettingPreferenceVisibilityHandler {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue