Layer shader now uses own attribute for line dimensions instead of misusing uvs.

This commit is contained in:
Jack Ha 2016-12-28 15:20:14 +01:00
parent 8d2b3654a4
commit 0f2fb86cd9
6 changed files with 22 additions and 40 deletions

View file

@ -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