mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:15:52 +08:00
Fixed layerview extruder choice checkboxes. CURA-3273
This commit is contained in:
parent
c67ec7f8ab
commit
bb030c724b
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user