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>2022-02-22 22:20:18 +0300
committerJulien Duroure <julien.duroure@gmail.com>2022-02-22 22:20:18 +0300
commit601b76c4927bffe97b72925383e266c49ce10ff5 (patch)
tree565b0f236ed4e3f585001735c924e98fdfc2abdf /io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py
parent1804852824ef009b7199ac421cf23b61530804cc (diff)
parentb2adbc6ba56d9e4380325866b8a3ae6d2d907a39 (diff)
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py
index e138e26a..d24db395 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py
@@ -306,6 +306,9 @@ def gather_keyframes(blender_object_if_armature: typing.Optional[bpy.types.Objec
keyframes.append(key)
+ if not export_settings[gltf2_blender_export_keys.OPTIMIZE_ANIMS]:
+ return keyframes
+
# For armature only
# Check if all values are the same
# In that case, if there is no real keyframe on this channel for this given bone,