Fix #111212: Crash in menu search when cursor is outside the window
When the mouse cursor is outside the window, it's expected to not have an active area set in context on such screen level operators. Use the existing context query that handles this case.
This commit is contained in:
@@ -3240,7 +3240,7 @@ static int keyframe_jump_exec(bContext *C, wmOperator *op)
|
||||
static bool keyframe_jump_poll(bContext *C)
|
||||
{
|
||||
/* There is a keyframe jump operator specifically for the Graph Editor. */
|
||||
return ED_operator_screenactive_norender(C) && CTX_wm_area(C)->spacetype != SPACE_GRAPH;
|
||||
return ED_operator_screenactive_norender(C) && ED_operator_graphedit_active(C);
|
||||
}
|
||||
|
||||
static void SCREEN_OT_keyframe_jump(wmOperatorType *ot)
|
||||
|
||||
Reference in New Issue
Block a user