mirror of
https://github.com/Ultimaker/Cura.git
synced 2026-01-28 03:40:43 -07:00
Remove more things we don't need and get this build closer to 5.10.x
Don't merge to main. CURA-12625
This commit is contained in:
parent
b72ae49dec
commit
3bd25e0ee7
30 changed files with 29 additions and 18899 deletions
|
|
@ -145,7 +145,6 @@ class SimulationPass(RenderPass):
|
|||
|
||||
# Compensate for flipping the ZY-plane:
|
||||
flip_plane_info: Tuple[bool, float] = (True, CuraApplication.getInstance().getBuildVolume().getWidth())
|
||||
print(f"FLIP PLANE INFO: {flip_plane_info}")
|
||||
|
||||
# Render all layers below a certain number as line mesh instead of vertices.
|
||||
if self._layer_view.getCurrentLayer() > -1 and ((not self._layer_view._only_show_top_layers) or (not self._layer_view.getCompatibilityMode())):
|
||||
|
|
@ -209,9 +208,9 @@ class SimulationPass(RenderPass):
|
|||
self._layer_shader.setUniformValue("u_next_vertex", not_a_vector)
|
||||
self._layer_shader.setUniformValue("u_last_line_ratio", 1.0)
|
||||
|
||||
# The first line does not have a previous line: add a MoveUnretractedType in front for start detection
|
||||
# The first line does not have a previous line: add a MoveCombingType in front for start detection
|
||||
# this way the first start of the layer can also be drawn
|
||||
prev_line_types = numpy.concatenate([numpy.asarray([LayerPolygon.MoveUnretractedType], dtype = numpy.float32), layer_data._attributes["line_types"]["value"]])
|
||||
prev_line_types = numpy.concatenate([numpy.asarray([LayerPolygon.MoveCombingType], dtype = numpy.float32), layer_data._attributes["line_types"]["value"]])
|
||||
# Remove the last element
|
||||
prev_line_types = prev_line_types[0:layer_data._attributes["line_types"]["value"].size]
|
||||
layer_data._attributes["prev_line_types"] = {'opengl_type': 'float', 'value': prev_line_types, 'opengl_name': 'a_prev_line_type'}
|
||||
|
|
|
|||
|
|
@ -608,10 +608,8 @@ class SimulationView(CuraView):
|
|||
visible_line_types.append(LayerPolygon.SupportInterfaceType)
|
||||
visible_line_types_with_extrusion = visible_line_types.copy() # Copy before travel moves are added
|
||||
if self.getShowTravelMoves():
|
||||
visible_line_types.append(LayerPolygon.MoveUnretractedType)
|
||||
visible_line_types.append(LayerPolygon.MoveRetractedType)
|
||||
visible_line_types.append(LayerPolygon.MoveWhileRetractingType)
|
||||
visible_line_types.append(LayerPolygon.MoveWhileUnretractingType)
|
||||
visible_line_types.append(LayerPolygon.MoveCombingType)
|
||||
visible_line_types.append(LayerPolygon.MoveRetractionType)
|
||||
|
||||
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
||||
layer_data = node.callDecoration("getLayerData")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue