[Bf-blender-cvs] [a44ac44c1e1] master: Fix anim_utils.bake_action typo

Campbell Barton noreply at git.blender.org
Thu Jan 10 03:20:20 CET 2019


Commit: a44ac44c1e1d1a4eff5824711e7763d9feae122b
Author: Campbell Barton
Date:   Thu Jan 10 13:11:48 2019 +1100
Branches: master
https://developer.blender.org/rBa44ac44c1e1d1a4eff5824711e7763d9feae122b

Fix anim_utils.bake_action typo

D4172 by @rcorre

===================================================================

M	release/scripts/modules/bpy_extras/anim_utils.py

===================================================================

diff --git a/release/scripts/modules/bpy_extras/anim_utils.py b/release/scripts/modules/bpy_extras/anim_utils.py
index c545d237329..970512833b4 100644
--- a/release/scripts/modules/bpy_extras/anim_utils.py
+++ b/release/scripts/modules/bpy_extras/anim_utils.py
@@ -47,12 +47,12 @@ def bake_action(
     :return: an action or None
     :rtype: :class:`bpy.types.Action`
     """
-    if not (do_pose or do_object):
+    if not (kwargs.get("do_pose") or kwargs.get("do_object")):
         return None
 
     action, = bake_action_objects(
         [(obj, action)],
-        frames,
+        frames=frames,
         **kwargs,
     )
     return action



More information about the Bf-blender-cvs mailing list