mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 22:05:59 +08:00
Fix for one-at-a-time. CURA-1707
This commit is contained in:
parent
d77f6e86e4
commit
d82249e260
@ -15,12 +15,13 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
|||||||
self._convex_hull_node = None
|
self._convex_hull_node = None
|
||||||
self._init2DConvexHullCache()
|
self._init2DConvexHullCache()
|
||||||
|
|
||||||
|
self._global_stack = None
|
||||||
|
|
||||||
self._raft_thickness = 0.0
|
self._raft_thickness = 0.0
|
||||||
# For raft thickness, DRY
|
# For raft thickness, DRY
|
||||||
self._build_volume = Application.getInstance().getBuildVolume()
|
self._build_volume = Application.getInstance().getBuildVolume()
|
||||||
self._build_volume.raftThicknessChanged.connect(self._onChanged)
|
self._build_volume.raftThicknessChanged.connect(self._onChanged)
|
||||||
|
|
||||||
self._global_stack = None
|
|
||||||
Application.getInstance().globalContainerStackChanged.connect(self._onGlobalStackChanged)
|
Application.getInstance().globalContainerStackChanged.connect(self._onGlobalStackChanged)
|
||||||
Application.getInstance().getController().toolOperationStarted.connect(self._onChanged)
|
Application.getInstance().getController().toolOperationStarted.connect(self._onChanged)
|
||||||
Application.getInstance().getController().toolOperationStopped.connect(self._onChanged)
|
Application.getInstance().getController().toolOperationStopped.connect(self._onChanged)
|
||||||
|
@ -48,7 +48,9 @@ class ConvexHullNode(SceneNode):
|
|||||||
self.setMeshData(hull_mesh)
|
self.setMeshData(hull_mesh)
|
||||||
convex_hull_head = self._node.callDecoration("getConvexHullHead")
|
convex_hull_head = self._node.callDecoration("getConvexHullHead")
|
||||||
if convex_hull_head:
|
if convex_hull_head:
|
||||||
self._convex_hull_head_mesh = self.createHullMesh(convex_hull_head.getPoints())
|
convex_hull_head_builder = MeshBuilder()
|
||||||
|
convex_hull_head_builder.addConvexPolygon(convex_hull_head.getPoints(), self._mesh_height-thickness)
|
||||||
|
self._convex_hull_head_mesh = convex_hull_head_builder.build()
|
||||||
|
|
||||||
def getHull(self):
|
def getHull(self):
|
||||||
return self._hull
|
return self._hull
|
||||||
|
Loading…
x
Reference in New Issue
Block a user