Bugfix [#25420] Sequencer View Zoom operator hidden

"Numpad 1" shortcut to set preview view zoom to 1:1 (i.e. 100%) did
not exist in View menu. While investigating this, I found that the
operator was missing a description/tooltip, so added one too.
This commit is contained in:
Joshua Leung 2010-12-31 03:54:28 +00:00
parent d4ea9eb9e7
commit dfffad69a9
2 changed files with 2 additions and 0 deletions

@ -134,6 +134,7 @@ class SEQUENCER_MT_view(bpy.types.Menu):
if (st.view_type == 'PREVIEW') or (st.view_type == 'SEQUENCER_PREVIEW'):
layout.operator_context = 'INVOKE_REGION_PREVIEW'
layout.operator("sequencer.view_all_preview", text='Fit preview in window')
layout.operator("sequencer.view_zoom_ratio", text='Show preview 1:1').ratio = 1.0
layout.operator_context = 'INVOKE_DEFAULT'
# # XXX, invokes in the header view

@ -2203,6 +2203,7 @@ void SEQUENCER_OT_view_zoom_ratio(wmOperatorType *ot)
/* identifiers */
ot->name= "Sequencer View Zoom Ratio";
ot->idname= "SEQUENCER_OT_view_zoom_ratio";
ot->description = "Change zoom ratio of sequencer preview";
/* api callbacks */
ot->exec= sequencer_view_zoom_ratio_exec;