mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-02 15:21:15 -07:00
D6: Changed decorator and swapping to LayerView
This commit is contained in:
parent
647c2f15ba
commit
67ab0cab41
7 changed files with 50 additions and 41 deletions
|
|
@ -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() }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue