Fix simple mode infill to work with multiple extruders

CURA-1778
This commit is contained in:
fieldOfView 2016-07-04 16:23:07 +02:00
parent 90fa0f0564
commit bff23598c6
2 changed files with 9 additions and 1 deletions

View file

@ -236,6 +236,13 @@ class MachineManagerModel(QObject):
return "" return ""
@pyqtProperty(str, notify = activeStackChanged)
def activeStackId(self):
if self._active_container_stack:
return self._active_container_stack.getId()
return ""
@pyqtProperty(str, notify = activeMaterialChanged) @pyqtProperty(str, notify = activeMaterialChanged)
def activeMaterialName(self): def activeMaterialName(self):
if self._active_container_stack: if self._active_container_stack:

View file

@ -371,7 +371,7 @@ Item
{ {
id: infillDensity id: infillDensity
containerStackId: Cura.MachineManager.activeMachineId containerStackId: Cura.MachineManager.activeStackId
key: "infill_sparse_density" key: "infill_sparse_density"
watchedProperties: [ "value" ] watchedProperties: [ "value" ]
storeIndex: 0 storeIndex: 0
@ -406,6 +406,7 @@ Item
watchedProperties: [ "value" ] watchedProperties: [ "value" ]
storeIndex: 0 storeIndex: 0
} }
UM.SettingPropertyProvider UM.SettingPropertyProvider
{ {
id: supportExtruderNr id: supportExtruderNr