Skip to content

Bug: Report throw IndexError: list index out of range when the face line is not the same #141

@Matt-V50

Description

@Matt-V50

Reproduce

usemtl plane678
f 480/3598 489/3597 477/3599
f 115 1049 116
f 116 1049 128
f 1040 125 127

Exception

Traceback (most recent call last):
  File "..\lib\site-packages\pywavefront\parser.py", line 129, in parse
    self.dispatcher.get(self.values[0], self.parse_fallback)()
  File "..\lib\site-packages\pywavefront\obj.py", line 274, in parse_f
    self.material.vertices += list(consumed_vertices)
  File "..\lib\site-packages\pywavefront\obj.py", line 384, in consume_faces
    t_index = (int(parts[1]) - 1) if has_vt else None
IndexError: list index out of range

Here parts = 115

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions