T466: Added test line

This commit is contained in:
Victor Larchenko 2016-10-11 17:20:55 +06:00 committed by Youness Alaoui
parent ac6ad5ec6c
commit b9514527dd
2 changed files with 71 additions and 12 deletions

View file

@ -45,10 +45,16 @@ 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() and node.isVisible():
elif isinstance(node, SceneNode) and (node.getMeshData() or flag) and node.isVisible():
layer_data = node.callDecoration("getLayerData")
if not layer_data:
continue