moderngl / moderngl-window

A cross platform utility library for ModernGL making window creation and resource loading simple
MIT License
244 stars 57 forks source link

load_scene has incorrect mesh name #174

Open klattimer opened 1 year ago

klattimer commented 1 year ago

In an obj file with o MyObject accompanied by a mtl file with newmtl MyMaterial the mesh.name has the same value as mash.material.name.

einarf commented 1 year ago

Definitely it looks like the material name is used for the mesh name. I don't quite remember why this was done.

https://github.com/moderngl/moderngl-window/blob/200f2b9ea8b350b0ac9bb6a2d24310c0d8227794/moderngl_window/loaders/scene/wavefront.py#L111