Skip to content
Snippets Groups Projects
Commit 72a85d74 authored by Julien Duroure's avatar Julien Duroure
Browse files

glTF exporter: Keep custom properties when applying modifiers to meshes

parent 0c171ba2
No related branches found
No related tags found
No related merge requests found
......@@ -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]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment