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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2014-02-05 16:32:35 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-02-05 16:34:24 +0400
commit7d4c04597ef40e5f48f5f9173fe40ba79c104df3 (patch)
tree23d67ab14162e2c8ab719cbc4d3de74c42ded809 /release/scripts/startup/bl_ui/space_info.py
parent8acf717b6d14231e99c6755d8f88eec835a33126 (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.py6
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()