Skip to content

Commit 42d0af6

Browse files
committed
Visualization should use texture.find
1 parent 74d411a commit 42d0af6

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
@@ -122,7 +122,7 @@ def gl_light(lighting):
122122
def bind_texture(texture):
123123
"""Draw a single texture"""
124124
if not getattr(texture, 'image', None):
125-
texture.image = load_image(texture.path)
125+
texture.image = load_image(texture.find())
126126

127127
glEnable(texture.image.target)
128128
glBindTexture(texture.image.target, texture.image.id)

0 commit comments

Comments
 (0)