OBJ: Support polylines with more than 2 vertices. #104503

Merged
Aras Pranckevicius merged 2 commits from mheistermann/blender:dev/mh/obj-polyline-support into main 2023-02-14 16:31:02 +01:00

2 Commits

Author SHA1 Message Date
Martin Heistermann b7752b176e OBJ: Add basic test for polyline import. 2023-02-11 20:26:59 +01:00
Martin Heistermann 6d192b8437 OBJ: Support polylines with more than 2 vertices.
The OBJ spec (page B1-17) allows "l" entries to specify
polylines with more than 2 vertices, optionally with texture
coordinates.

Previously, only the first 2 vertices of each polyline
were read and added as loose edges, failing when texture
coordinates were present.

This adds support for proper polylines, reading but ignoring
texture coordinates.
2023-02-11 20:26:39 +01:00