diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-12-18 15:02:28 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-12-18 15:02:28 +0300 |
commit | b342e089c3fb5cf83d6b3715f0658ed217a8c469 (patch) | |
tree | c61f1b245b175f6d9d672da39d2fba10b02e2c05 /release/scripts/modules | |
parent | e5528904f12104ee31e7b67b54f2a4b3f14cec1e (diff) |
Fix mistake in Bake Action discontinuity fix
Fix mistake in e5528904f12 where one change accidentally wasn't included
in the commit.
Diffstat (limited to 'release/scripts/modules')
-rw-r--r-- | release/scripts/modules/bpy_extras/anim_utils.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/release/scripts/modules/bpy_extras/anim_utils.py b/release/scripts/modules/bpy_extras/anim_utils.py index fb46c3c19b5..be6be2b6763 100644 --- a/release/scripts/modules/bpy_extras/anim_utils.py +++ b/release/scripts/modules/bpy_extras/anim_utils.py @@ -347,10 +347,7 @@ def bake_action_iter( else: # euler, XYZ, ZXY etc if euler_prev is not None: obj.rotation_euler = matrix.to_euler(obj.rotation_mode, euler_prev) - euler_prev = euler - del euler - else: - euler_prev = obj.rotation_euler.copy() + euler_prev = obj.rotation_euler.copy() obj.keyframe_insert("rotation_euler", index=-1, frame=f, group=name) obj.keyframe_insert("scale", index=-1, frame=f, group=name) |