diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-08-31 09:28:50 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-08-31 09:29:44 +0300 |
commit | dcd48a616b220966163c4f15dfc133ea9de64469 (patch) | |
tree | 11d63e013b8a95ccfcbed4787411a0f3b288d1ca /io_scene_gltf2/blender/exp | |
parent | c63bb5abce16b85dd0f6888b0114c65092747e7a (diff) |
glTF exporter: fix shapekeys animation
If shapekeys names have some dot, and some other don't, export failed
Diffstat (limited to 'io_scene_gltf2/blender/exp')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py index 45a75717..8eefafd4 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py @@ -187,10 +187,11 @@ def __get_channel_groups(blender_action: bpy.types.Action, blender_object: bpy.t else: try: target = gltf2_blender_get.get_object_from_datapath(blender_object, object_path) - if blender_object.type == "MESH": + if blender_object.type == "MESH" and object_path.startswith("key_blocks"): shape_key = blender_object.data.shape_keys.path_resolve(object_path) if shape_key.mute is True: continue + target = blender_object.data.shape_keys except ValueError as e: # if the object is a mesh and the action target path can not be resolved, we know that this is a morph # animation. |