diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2020-02-23 13:55:32 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2020-02-23 13:55:32 +0300 |
commit | ee61a3a692d30bcb844901c87c9408db332f4265 (patch) | |
tree | 61e58774a4ce0285a5103ca5f32e5ff1e2c272ec /io_scene_gltf2/blender/imp/gltf2_blender_mesh.py | |
parent | b4fc9fbcf4e2d766143d6e88b57e892a12b6fe88 (diff) |
glTF importer: manage morph weights at node level
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_mesh.py')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_mesh.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py b/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py index 04af71b2..adf05281 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py @@ -75,24 +75,12 @@ class BlenderMesh(): set_extras(mesh, pymesh.extras, exclude=['targetNames']) - pymesh.blender_name[skin_idx] = mesh.name - # Clear accessor cache after all primitives are done gltf.accessor_cache = {} return mesh @staticmethod - def set_mesh(gltf, pymesh, obj): - """Sets mesh data after creation.""" - # set default weights for shape keys, and names, if not set by convention on extras data - if pymesh.weights is not None: - for i in range(len(pymesh.weights)): - if pymesh.shapekey_names[i] is None: # No default value if shapekeys was not created - continue - obj.data.shape_keys.key_blocks[pymesh.shapekey_names[i]].value = pymesh.weights[i] - - @staticmethod def bmesh_to_mesh(gltf, pymesh, bme, mesh): bme.to_mesh(mesh) |