Fixed layerview extruder choice checkboxes. CURA-3273

This commit is contained in:
Jack Ha 2017-02-16 15:56:37 +01:00
parent c67ec7f8ab
commit bb030c724b

View file

@ -63,7 +63,7 @@ class LayerDataBuilder(MeshBuilder):
line_dimensions = numpy.empty((vertex_count, 2), numpy.float32)
colors = numpy.empty((vertex_count, 4), numpy.float32)
indices = numpy.empty((index_count, 2), numpy.int32)
extruders = numpy.empty((vertex_count), numpy.float32)
extruders = numpy.empty((vertex_count), numpy.int32) # Only usable for newer OpenGL versions
line_types = numpy.empty((vertex_count), numpy.float32)
vertex_offset = 0
@ -95,7 +95,7 @@ class LayerDataBuilder(MeshBuilder):
"extruders": {
"value": extruders,
"opengl_name": "a_extruder",
"opengl_type": "float"
"opengl_type": "float" # Strangely enough, the type has to be float while it is actually an int.
},
"colors": {
"value": material_colors,