Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2020-10-20 23:33:38 +0300
committerJulien Duroure <julien.duroure@gmail.com>2020-10-20 23:33:38 +0300
commit9e7404ce614d0a4b2e66bbb449f3b17025a27fb8 (patch)
treee35abc2bdc19e494db3dc6191a29cb694fd4d02a
parent96291108b1027930b41a39cc1aba155ded75499f (diff)
glTF importer: restore setting extra to mesh custom properties
-rwxr-xr-xio_scene_gltf2/__init__.py2
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_mesh.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 1f9dfe61..4e105b69 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -15,7 +15,7 @@
bl_info = {
'name': 'glTF 2.0 format',
'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),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py b/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py
index ef26a1a5..34e979b9 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py
@@ -48,6 +48,7 @@ def create_mesh(gltf, mesh_idx, skin_idx):
try:
tmp_ob = bpy.data.objects.new('##gltf-import:tmp-object##', mesh)
do_primitives(gltf, mesh_idx, skin_idx, mesh, tmp_ob)
+ set_extras(mesh, gltf.data.meshes[mesh_idx].extras, exclude=['targetNames'])
finally:
if tmp_ob: