mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
Layer shader now uses own attribute for line dimensions instead of misusing uvs.
This commit is contained in:
parent
8d2b3654a4
commit
0f2fb86cd9
6 changed files with 22 additions and 40 deletions
|
@ -6,9 +6,9 @@ from UM.Mesh.MeshData import MeshData
|
|||
# Immutable, use LayerDataBuilder to create one of these.
|
||||
class LayerData(MeshData):
|
||||
def __init__(self, vertices = None, normals = None, indices = None, colors = None, uvs = None, file_name = None,
|
||||
center_position = None, layers=None, element_counts=None):
|
||||
center_position = None, layers=None, element_counts=None, attributes=None):
|
||||
super().__init__(vertices=vertices, normals=normals, indices=indices, colors=colors, uvs=uvs,
|
||||
file_name=file_name, center_position=center_position)
|
||||
file_name=file_name, center_position=center_position, attributes=attributes)
|
||||
self._layers = layers
|
||||
self._element_counts = element_counts
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue