mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
T466: Added pausing of backend work
This commit is contained in:
parent
b9514527dd
commit
65f3495a29
5 changed files with 28 additions and 8 deletions
|
@ -45,16 +45,11 @@ class LayerPass(RenderPass):
|
|||
tool_handle_batch = RenderBatch(self._tool_handle_shader, type = RenderBatch.RenderType.Overlay)
|
||||
|
||||
for node in DepthFirstIterator(self._scene.getRoot()):
|
||||
flag = False
|
||||
try:
|
||||
flag = node.gcode
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
if isinstance(node, ToolHandle):
|
||||
tool_handle_batch.addItem(node.getWorldTransformation(), mesh = node.getSolidMesh())
|
||||
|
||||
elif isinstance(node, SceneNode) and (node.getMeshData() or flag) and node.isVisible():
|
||||
elif isinstance(node, SceneNode) and (node.getMeshData()) and node.isVisible():
|
||||
layer_data = node.callDecoration("getLayerData")
|
||||
if not layer_data:
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue