initialize bake action vars from context

This commit is contained in:
Campbell Barton
2012-05-26 00:46:12 +00:00
parent 49b6867e0c
commit 3bb4814194

View File

@@ -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)