D6: Changed Decorator

This commit is contained in:
Victor Larchenko 2016-12-12 13:10:02 +06:00 committed by Youness Alaoui
parent 90f7cebbbb
commit 647c2f15ba
3 changed files with 7 additions and 16 deletions

View file

@ -49,7 +49,7 @@ class LayerPass(RenderPass):
if isinstance(node, ToolHandle):
tool_handle_batch.addItem(node.getWorldTransformation(), mesh = node.getSolidMesh())
elif isinstance(node, SceneNode) and (node.getMeshData() or not node.callDecoration("isSliceable")) and node.isVisible():
elif isinstance(node, SceneNode) and (node.getMeshData() or node.callDecoration("isSliceable") is False) and node.isVisible():
layer_data = node.callDecoration("getLayerData")
if not layer_data:
continue