diff options
-rwxr-xr-x | io_scene_gltf2/__init__.py | 2 | ||||
-rw-r--r-- | io_scene_gltf2/blender/exp/gltf2_blender_gather_drivers.py | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index 41f09df9..3a279780 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, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors', - "version": (1, 7, 30), + "version": (1, 7, 31), 'blender': (2, 91, 0), 'location': 'File > Import-Export', 'description': 'Import-Export as glTF 2.0', 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 561f246c..ede6bab2 100644 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_drivers.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_drivers.py @@ -53,6 +53,11 @@ def get_sk_drivers(blender_armature): for sk_c in child.data.shape_keys.animation_data.drivers: # Check if driver is valid. If not, ignore this driver channel try: + # Check if driver is valid. + # Try/Except is no more a suffisant check, starting with version Blender 3.0, + # Blender crashs when trying to resolve path on invalid driver + if not sk_c.is_valid: + continue sk_name = child.data.shape_keys.path_resolve(get_target_object_path(sk_c.data_path)).name except: continue |