diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-04-16 23:55:47 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-04-16 23:55:47 +0300 |
commit | 72a85d74000d6f5e568dc4fb73381cc3d1ae7af8 (patch) | |
tree | c9837c47c125379906bfb2fee7a1285708636dcc /io_scene_gltf2/blender | |
parent | 0c171ba279126e3637510c5f7f5ab91164806891 (diff) |
glTF exporter: Keep custom properties when applying modifiers to meshes
Diffstat (limited to 'io_scene_gltf2/blender')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py index df34d45c..1671d6de 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py @@ -227,6 +227,8 @@ def __gather_mesh(blender_object, export_settings): modifier.show_viewport = False blender_mesh = blender_object.to_mesh(bpy.context.depsgraph, True) + for prop in blender_object.data.keys(): + blender_mesh[prop] = blender_object.data[prop] skip_filter = True if export_settings[gltf2_blender_export_keys.SKINS]: |