Merge branch 'feature_objectlist_improvements' of https://github.com/fieldOfView/Cura

This commit is contained in:
Jaime van Kessel 2020-04-28 15:40:08 +02:00
commit 9e68bcb7a0
No known key found for this signature in database
GPG key ID: 3710727397403C91
5 changed files with 295 additions and 35 deletions

View file

@ -94,6 +94,12 @@ class SettingOverrideDecorator(SceneNodeDecorator):
#
# \return An extruder's position, or None if no position info is available.
def getActiveExtruderPosition(self):
# for support_meshes, always use the support_extruder
if self.getStack().getProperty("support_mesh", "value"):
global_container_stack = Application.getInstance().getGlobalContainerStack()
if global_container_stack:
return str(global_container_stack.getProperty("support_extruder_nr", "value"))
containers = ContainerRegistry.getInstance().findContainers(id = self.getActiveExtruder())
if containers:
container_stack = containers[0]