diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-05 16:32:35 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-05 16:34:24 +0400 |
commit | 7d4c04597ef40e5f48f5f9173fe40ba79c104df3 (patch) | |
tree | 23d67ab14162e2c8ab719cbc4d3de74c42ded809 /release/scripts/startup/bl_ui/space_info.py | |
parent | 8acf717b6d14231e99c6755d8f88eec835a33126 (diff) |
Fix T38466: F12 / ctrl F12 shortcuts not showing in Render menu.
This is tricking the keymap system a bit to make it match, this use_viewport
option has no effect when invoked from the info space.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_info.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_info.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_info.py b/release/scripts/startup/bl_ui/space_info.py index bbf6167dda5..f5106ddfcdf 100644 --- a/release/scripts/startup/bl_ui/space_info.py +++ b/release/scripts/startup/bl_ui/space_info.py @@ -224,8 +224,10 @@ class INFO_MT_render(Menu): def draw(self, context): layout = self.layout - layout.operator("render.render", text="Render Image", icon='RENDER_STILL') - layout.operator("render.render", text="Render Animation", icon='RENDER_ANIMATION').animation = True + layout.operator("render.render", text="Render Image", icon='RENDER_STILL').use_viewport = True + props = layout.operator("render.render", text="Render Animation", icon='RENDER_ANIMATION') + props.animation = True + props.use_viewport = True layout.separator() |