From 7d4c04597ef40e5f48f5f9173fe40ba79c104df3 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 5 Feb 2014 13:32:35 +0100 Subject: 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. --- release/scripts/startup/bl_ui/space_info.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'release/scripts/startup/bl_ui/space_info.py') 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() -- cgit v1.2.3