Skip to content

Commit e1a3ad8

Browse files
committed
Fix vertex format exception
1 parent 1c8012f commit e1a3ad8

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)