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 /io_scene_gltf2/blender
parent96291108b1027930b41a39cc1aba155ded75499f (diff)
glTF importer: restore setting extra to mesh custom properties
Diffstat (limited to 'io_scene_gltf2/blender')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_mesh.py1
1 files changed, 1 insertions, 0 deletions
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: