[Bf-blender-cvs] [7d4c045] master: Fix T38466: F12 / ctrl F12 shortcuts not showing in Render menu.

Brecht Van Lommel noreply at git.blender.org
Wed Feb 5 13:35:05 CET 2014


Commit: 7d4c04597ef40e5f48f5f9173fe40ba79c104df3
Author: Brecht Van Lommel
Date:   Wed Feb 5 13:32:35 2014 +0100
https://developer.blender.org/rB7d4c04597ef40e5f48f5f9173fe40ba79c104df3

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.

===================================================================

M	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 bbf6167..f5106dd 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()




More information about the Bf-blender-cvs mailing list