Skip to content

Commit aa916a3

Browse files
author
Kurt Yoder
authored
Merge pull request #86 from Oliv4945/fixVertexFormatException
Fix vertex format exception
2 parents 1c8012f + e1a3ad8 commit aa916a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pywavefront/visualization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def draw_material(material, face=GL_FRONT_AND_BACK):
8080

8181
vertex_format = VERTEX_FORMATS.get(material.vertex_format)
8282
if not vertex_format:
83-
raise ValueError("Vertex format {} not supported by pyglet".format(vertex_format))
83+
raise ValueError("Vertex format {} not supported by pyglet".format(material.vertex_format))
8484

8585
glPushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT)
8686
glPushAttrib(GL_CURRENT_BIT | GL_ENABLE_BIT | GL_LIGHTING_BIT)

0 commit comments

Comments
 (0)