Speed up FBX export of face material indices with numpy #104450

Merged
Bastien Montagne merged 1 commits from Mysteryem/blender-addons:fbx_numpy_face_materials_pr into main 2023-03-06 15:10:58 +01:00

1 Commits

Author SHA1 Message Date
Thomas Barlow 6426fbf407 Speed up FBX export of face material indices with numpy
Use buffer matching the C type of the "material_index" property in foreach_get to avoid having to iterate and cast every single element in the C foreach_getset function.

~5-6 times faster export of face material indices.

This patch makes no change to the exported file.
2023-03-06 15:05:46 +01:00