Fix T40216: Binary FBX exporter doesn't export proper materials to Unity when there's a modifier added.

This commit is contained in:
Bastien Montagne 2014-05-16 07:46:12 +02:00
parent fb01dd9e54
commit 29072f8d46
Notes: blender-bot 2023-02-14 20:07:33 +01:00
Referenced by issue #40216, Binary FBX exporter doesn't export proper materials to Unity when there's a modifier added.
1 changed files with 1 additions and 1 deletions

View File

@ -2100,7 +2100,7 @@ def fbx_data_from_scene(scene, settings):
# Only mats for meshes currently...
if ob_obj.type not in BLENDER_OBJECT_TYPES_MESHLIKE:
continue
me = ob_obj.bdata.data
_mesh_key, me, _free = data_meshes[ob_obj.bdata]
idx = _objs_indices[ob_obj] = _objs_indices.get(ob_obj, -1) + 1
mesh_mat_indices.setdefault(me, OrderedDict())[mat] = idx
del _objs_indices