danini-the-panini / mittsu

3D Graphics Library for Ruby.
https://github.com/danini-the-panini/mittsu
MIT License
508 stars 33 forks source link

Late naming for objects in OBJ loader #126

Closed Floppy closed 5 months ago

Floppy commented 5 months ago

Handles late naming of first object in OBJ file. This happens in quite a few files found in the wild, where the first o declaration happens after the vertex list.

Fixes a sub-issue identified in #123.

Floppy commented 5 months ago

This is good to go. I'll was thinking to fix the main issue in #123 here as well, but that's a bigger change that I need to take more time over, so I'll do it separately. I was thinking the object name fix would need a bigger change, but it didn't.