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:24:20 +0300
committerJulien Duroure <julien.duroure@gmail.com>2022-02-22 22:24:20 +0300
commit08135f54f4ce937edfeebe35de97f872e2ee0713 (patch)
tree934d079cb61360290f15772bc5b3acd978ac40e6 /io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py
parent9528cd4e3277cc66ca3d73cc76e6cfa634a6df37 (diff)
gltf: merge master
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 de0ec3fd..a12bbedd 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
@@ -428,6 +428,9 @@ def gather_keyframes(blender_obj_uuid: str,
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,