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

glTF importer: restore setting extra to mesh custom properties

parent 96291108
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
bl_info = { bl_info = {
'name': 'glTF 2.0 format', 'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors', 'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
"version": (1, 4, 35), "version": (1, 4, 36),
'blender': (2, 91, 0), 'blender': (2, 91, 0),
'location': 'File > Import-Export', 'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0', 'description': 'Import-Export as glTF 2.0',
......
...@@ -48,6 +48,7 @@ def create_mesh(gltf, mesh_idx, skin_idx): ...@@ -48,6 +48,7 @@ def create_mesh(gltf, mesh_idx, skin_idx):
try: try:
tmp_ob = bpy.data.objects.new('##gltf-import:tmp-object##', mesh) tmp_ob = bpy.data.objects.new('##gltf-import:tmp-object##', mesh)
do_primitives(gltf, mesh_idx, skin_idx, mesh, tmp_ob) do_primitives(gltf, mesh_idx, skin_idx, mesh, tmp_ob)
set_extras(mesh, gltf.data.meshes[mesh_idx].extras, exclude=['targetNames'])
finally: finally:
if tmp_ob: if tmp_ob:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment