forked from bartvdbraak/blender
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.
This commit is contained in:
parent
8acf717b6d
commit
7d4c04597e
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user