mrwonko / Blender-Jedi-Academy-Tools

Blender Importer and Exporter for the Ghoul2 model/animation format (.gla/.glm) by Raven Software, created with Jedi Knight: Jedi Academy in mind.
14 stars 5 forks source link

Triangulate on export #40

Open mrwonko opened 1 year ago

mrwonko commented 1 year ago

See https://github.com/SomaZ/Blender_BSP_Importer/blob/8e5e1d39664aa0b2c9db371dd11e610b4cffd718/import_bsp/MD3.py#L137

To enable n-go export

mrwonko commented 5 months ago
mesh.calc_loop_triangles()
for triangle in mesh.loop_triangles:

above code instead of

for face in mesh.polygons: