Added extruder count detection to layer view. CURA-3273

This commit is contained in:
Jack Ha 2017-01-30 13:29:35 +01:00
parent 5f6ed488d1
commit 5a2aa8846b
4 changed files with 54 additions and 10 deletions

View file

@ -50,6 +50,7 @@ class ExtruderManager(QObject):
except KeyError: # Extruder index could be -1 if the global tab is selected, or the entry doesn't exist if the machine definition is wrong.
return None
## Return extruder count according to extruder trains.
@pyqtProperty(int, notify = extrudersChanged)
def extruderCount(self):
if not UM.Application.getInstance().getGlobalContainerStack():