Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-05-26 04:46:12 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-26 04:46:12 +0400
commit3bb48141946e066a47f02d781870ddafea2f58e6 (patch)
treee8a1449c11a74c4afb93e00ccf8e78b0436d345f /release/scripts
parent49b6867e0c8c3439564d102d975ca60a2e285996 (diff)
initialize bake action vars from context
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_operators/anim.py5
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)