Only write property changes to extruder stack if we actually should

Now global settings are once again stored in the global stack

Contributes to CURA-2006
This commit is contained in:
Arjen Hiemstra 2016-08-04 02:09:02 +02:00
parent 4de4053490
commit 6eed25f145

View file

@ -94,6 +94,7 @@ ScrollView
{
target: provider
property: "containerStackId"
when: model.settable_per_extruder || (inheritStackProvider.properties.global_inherits_stack == -1 || inheritStackProvider.properties.global_inherits_stack == null)
value:
{
if(inheritStackProvider.properties.global_inherits_stack == -1 || inheritStackProvider.properties.global_inherits_stack == null)
@ -127,7 +128,7 @@ ScrollView
containerStackId: Cura.MachineManager.activeMachineId
key: model.key ? model.key : ""
watchedProperties: [ "value", "enabled", "state", "validationState", "settable_per_extruder" ]
watchedProperties: [ "value", "enabled", "state", "validationState" ]
storeIndex: 0
}