Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cura 11617 print manually #939

Closed
wants to merge 4 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions UM/Scene/Iterator/DepthFirstIterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,16 @@ def __init__(self, scene_node: SceneNode) -> None:
super().__init__(scene_node)

def _fillStack(self) -> None:
self._addNodesToStack()
self._set_print_order_for_sliceable_nodes()
saumyaj3 marked this conversation as resolved.
Show resolved Hide resolved

def _addNodesToStack(self) -> None:
self._node_stack.append(self._scene_node)
self._node_stack.extend(self._scene_node.getAllChildren())

def _setPrintOrderForSliceableNodes(self) -> None:
order_counter = 1
for node in self._node_stack:
if node.callDecoration("isSliceable"):
node.printOrder = order_counter
order_counter += 1
Loading