bugfix: qualify "Material" reference
This commit is contained in:
1 parent
5e5167d072
commit
b90283942c
1 file changed
+1
-1
@@ -130,7 +130,7 @@ class WFObj(object):
|
||||
if parts[0] == 'newmtl':
|
||||
if len(parts[1:]) < 1:
|
||||
raise ValueError('newmtl directive requires argument on line %d' % lineno)
|
||||
material = Material()
|
||||
material = self.Material()
|
||||
material_name = parts[1]
|
||||
self.materials[material_name] = material
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user