diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-10-12 18:15:22 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-10-12 18:15:22 +0300 |
commit | ecdaef952383c28aa3793f86cee160202f46913b (patch) | |
tree | be6556bc3a4af75a793cca17a788b187e87b0c72 /io_scene_gltf2/blender/imp/gltf2_blender_mesh.py | |
parent | b9b1814a4c26f73aae7f306c9ff2e21b7b7bdcee (diff) |
glTF importer: Import extra data as custom properties
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_mesh.py')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_mesh.py | 3 |
1 files changed, 3 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 1f7f7b66..eb92d9a3 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py @@ -16,6 +16,7 @@ import bpy import bmesh from mathutils import Vector +from ..com.gltf2_blender_extras import set_extras from .gltf2_blender_material import BlenderMaterial from .gltf2_blender_primitive import BlenderPrimitive from ...io.imp.gltf2_io_binary import BinaryData @@ -75,6 +76,8 @@ class BlenderMesh(): mesh.materials.append(bpy.data.materials[name_material]) mesh.update() + set_extras(mesh, pymesh.extras, exclude=['targetNames']) + pymesh.blender_name = mesh.name # Clear accessor cache after all primitives are done |