diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-26 04:46:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-26 04:46:12 +0400 |
commit | 3bb48141946e066a47f02d781870ddafea2f58e6 (patch) | |
tree | e8a1449c11a74c4afb93e00ccf8e78b0436d345f /release/scripts/startup | |
parent | 49b6867e0c8c3439564d102d975ca60a2e285996 (diff) |
initialize bake action vars from context
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_operators/anim.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/anim.py b/release/scripts/startup/bl_operators/anim.py index 2689cfda8eb..5a428467f12 100644 --- a/release/scripts/startup/bl_operators/anim.py +++ b/release/scripts/startup/bl_operators/anim.py @@ -223,6 +223,11 @@ class BakeAction(Operator): return {'FINISHED'} def invoke(self, context, event): + scene = context.scene + self.frame_start = scene.frame_start + self.frame_end = scene.frame_end + self.bake_types = {'POSE'} if context.mode == 'POSE' else {'OBJECT'} + wm = context.window_manager return wm.invoke_props_dialog(self) |