diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-05-27 18:02:21 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-05-27 18:02:21 +0300 |
commit | 118a0f47293834c9e3f345c92e06ca2825d2fe3f (patch) | |
tree | 30790cd23858e6042787bd0bcb38978a04c85479 /io_scene_fbx/export_fbx_bin.py | |
parent | 378eae8dd80e05d5052eacf7c5b3c4fcfdd907b9 (diff) |
Fix T64994: 2.80 - Py API: Exporters: applied modifiers geometry looses most of orig custom data layers.
Now we can get full-featured mesh with new system too.
Diffstat (limited to 'io_scene_fbx/export_fbx_bin.py')
-rw-r--r-- | io_scene_fbx/export_fbx_bin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py index 6f01ddf8..c8790ada 100644 --- a/io_scene_fbx/export_fbx_bin.py +++ b/io_scene_fbx/export_fbx_bin.py @@ -2230,7 +2230,8 @@ def fbx_data_from_scene(scene, depsgraph, settings): # NOTE: The dependency graph might be re-evaluating multiple times, which could # potentially free the mesh created early on. So we put those meshes to bmain and # free them afterwards. Not ideal but ensures correct ownerwhip. - tmp_me = bpy.data.meshes.new_from_object(ob_to_convert) + tmp_me = bpy.data.meshes.new_from_object( + ob_to_convert, preserve_all_data_layers=True, depsgraph=depsgraph) data_meshes[ob_obj] = (get_blenderID_key(tmp_me), tmp_me, True) # Change armatures back. for armature, pose_position in backup_pose_positions: |