From 7e18281d2f1039bf281968427fec45daa79c7531 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 19 Feb 2018 11:15:41 +1100 Subject: [PATCH] FBX Export: Fix shapekeys w/ object materials D3068 by @cyaoeu --- io_scene_fbx/export_fbx_bin.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py index 58bd4586..d161844f 100644 --- a/io_scene_fbx/export_fbx_bin.py +++ b/io_scene_fbx/export_fbx_bin.py @@ -2194,8 +2194,11 @@ def fbx_data_from_scene(scene, settings): if mod.show_render: use_org_data = False if not use_org_data: - tmp_me = ob.to_mesh(scene, apply_modifiers=True, - settings='RENDER' if settings.use_mesh_modifiers_render else 'PREVIEW') + tmp_me = ob.to_mesh( + scene, + apply_modifiers=settings.use_mesh_modifiers, + settings='RENDER' if settings.use_mesh_modifiers_render else 'PREVIEW', + ) data_meshes[ob_obj] = (get_blenderID_key(tmp_me), tmp_me, True) # Re-enable temporary disabled modifiers. for mod, show_render in tmp_mods: -- 2.11.4.GIT