D6: Changed decorator and swapping to LayerView

This commit is contained in:
Victor Larchenko 2016-12-13 13:39:09 +06:00 committed by Youness Alaoui
parent 647c2f15ba
commit 67ab0cab41
7 changed files with 50 additions and 41 deletions

View file

@ -28,6 +28,6 @@ def getMetaData():
}
def register(app):
app.non_sliceable_extensions.append(".gcode")
app.non_sliceable_extensions.append(".g")
app.addNonSliceableExtension(".gcode")
app.addNonSliceableExtension(".g")
return { "mesh_reader": GCodeReader.GCodeReader() }

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 node.callDecoration("isSliceable") is False) and node.isVisible():
elif isinstance(node, SceneNode) and (node.getMeshData() or node.callDecoration("isBlockSlicing")) and node.isVisible():
layer_data = node.callDecoration("getLayerData")
if not layer_data:
continue