mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-17 11:47:50 -06:00
Show support extruder for support meshes
This commit is contained in:
parent
bba07d01fb
commit
2eeabec317
1 changed files with 6 additions and 0 deletions
|
@ -94,6 +94,12 @@ class SettingOverrideDecorator(SceneNodeDecorator):
|
||||||
#
|
#
|
||||||
# \return An extruder's position, or None if no position info is available.
|
# \return An extruder's position, or None if no position info is available.
|
||||||
def getActiveExtruderPosition(self):
|
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())
|
containers = ContainerRegistry.getInstance().findContainers(id = self.getActiveExtruder())
|
||||||
if containers:
|
if containers:
|
||||||
container_stack = containers[0]
|
container_stack = containers[0]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue