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-02-29 18:09:37 +0300
committerJulien Duroure <julien.duroure@gmail.com>2020-02-29 18:09:37 +0300
commit0e2a855c40c60c8669ffd4f7d56a5ad78c7c6ee9 (patch)
tree7f57a9ed075f062c343db7e06dea115c010532d7 /io_scene_gltf2/blender
parentb530802c223f054f70474d60c1accda27446fe0b (diff)
glTF exporter: add check to avoid error when armature is parented to another armature
Diffstat (limited to 'io_scene_gltf2/blender')
-rw-r--r--io_scene_gltf2/blender/exp/gltf2_blender_gather_drivers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_drivers.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_drivers.py
index 8157bb45..2a885971 100644
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_drivers.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_drivers.py
@@ -27,6 +27,9 @@ def get_sk_drivers(blender_armature):
for child in blender_armature.children:
if not child.data:
continue
+ # child.data can be an armature - which has no shapekeys
+ if not hasattr(child.data, 'shape_keys'):
+ continue
if not child.data.shape_keys:
continue
if not child.data.shape_keys.animation_data: