[Bf-extensions-cvs] [dcd48a61] master: glTF exporter: fix shapekeys animation
Julien Duroure
noreply at git.blender.org
Sat Aug 31 08:29:48 CEST 2019
Commit: dcd48a616b220966163c4f15dfc133ea9de64469
Author: Julien Duroure
Date: Sat Aug 31 08:28:50 2019 +0200
Branches: master
https://developer.blender.org/rBAdcd48a616b220966163c4f15dfc133ea9de64469
glTF exporter: fix shapekeys animation
If shapekeys names have some dot, and some other don't, export failed
===================================================================
M io_scene_gltf2/__init__.py
M io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py
===================================================================
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index f64224ce..ed81b1d2 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, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
- "version": (0, 9, 53),
+ "version": (0, 9, 54),
'blender': (2, 80, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',
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.
More information about the Bf-extensions-cvs
mailing list