mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 05:07:50 -06:00
Show support settings when support meshes are present in the scene
This commit is contained in:
parent
485e37e7f5
commit
6e09e9821f
3 changed files with 129 additions and 83 deletions
|
@ -36,6 +36,12 @@ class CuraSceneNode(SceneNode):
|
|||
def isSelectable(self) -> bool:
|
||||
return super().isSelectable() and self.callDecoration("getBuildPlateNumber") == cura.CuraApplication.CuraApplication.getInstance().getMultiBuildPlateModel().activeBuildPlate
|
||||
|
||||
def isSupportMesh(self) -> bool:
|
||||
per_mesh_stack = self.callDecoration("getStack")
|
||||
if not per_mesh_stack:
|
||||
return False
|
||||
return per_mesh_stack.getProperty("support_mesh", "value")
|
||||
|
||||
## Get the extruder used to print this node. If there is no active node, then the extruder in position zero is returned
|
||||
# TODO The best way to do it is by adding the setActiveExtruder decorator to every node when is loaded
|
||||
def getPrintingExtruder(self) -> Optional[ExtruderStack]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue