We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 549a5a9 commit 6e0e170Copy full SHA for 6e0e170
pywavefront/obj.py
@@ -382,7 +382,10 @@ def emit_vertex(vertex):
382
t_index = (int(parts[1]) - 1) if has_vt else None
383
except ValueError:
384
t_index = 0
385
- n_index = (int(parts[2]) - 1) if has_vn else None
+ try:
386
+ n_index = (int(parts[2]) - 1) if has_vn else None
387
+ except ValueError:
388
+ n_index = 0
389
390
# Resolve negative index lookups
391
if v_index < 0:
0 commit comments