2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 16:24:55 +00:00

Blender 2.81 support

This commit is contained in:
2019-12-10 18:37:28 -05:00
parent 6233179de7
commit cce11d3cd9
2 changed files with 50 additions and 53 deletions

View File

@@ -562,7 +562,7 @@ void FinishBlenderMesh(hecl::blender::PyOutStream& os, unsigned matSetCount, int
" present_mats.add(poly.material_index)\n"
"for mat_idx in reversed(range(len(mesh.materials))):\n"
" if mat_idx not in present_mats:\n"
" mesh.materials.pop(index=mat_idx, update_data=True)\n"
" mesh.materials.pop(index=mat_idx)\n"
"\n"
"mesh.update()\n"
"\n";