Remove redundant NULL check
This commit is contained in:
parent
ffdeba49e6
commit
f8385de5ed
|
@ -4665,7 +4665,7 @@ void ED_view3d_cursor3d_update(bContext *C, const int mval[2])
|
|||
}
|
||||
}
|
||||
|
||||
if (v3d && v3d->localvd)
|
||||
if (v3d->localvd)
|
||||
WM_event_add_notifier(C, NC_SPACE | ND_SPACE_VIEW3D, v3d);
|
||||
else
|
||||
WM_event_add_notifier(C, NC_SCENE | NA_EDITED, scene);
|
||||
|
@ -4675,7 +4675,7 @@ static int view3d_cursor3d_invoke(bContext *C, wmOperator *UNUSED(op), const wmE
|
|||
{
|
||||
ED_view3d_cursor3d_update(C, event->mval);
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
||||
void VIEW3D_OT_cursor3d(wmOperatorType *ot)
|
||||
|
|
|
@ -456,11 +456,11 @@ void wm_window_add_ghostwindows(wmWindowManager *wm)
|
|||
if (wm_init_state.size_x == 0) {
|
||||
wm_get_screensize(&wm_init_state.size_x, &wm_init_state.size_y);
|
||||
|
||||
/* note!, this isnt quite correct, active screen maybe offset 1000s if PX,
|
||||
* we'd need a wm_get_screensize like function that gives offset,
|
||||
* in practice the window manager will likely move to the correct monitor */
|
||||
wm_init_state.start_x = 0;
|
||||
wm_init_state.start_y = 0;
|
||||
/* note!, this isnt quite correct, active screen maybe offset 1000s if PX,
|
||||
* we'd need a wm_get_screensize like function that gives offset,
|
||||
* in practice the window manager will likely move to the correct monitor */
|
||||
wm_init_state.start_x = 0;
|
||||
wm_init_state.start_y = 0;
|
||||
|
||||
#ifdef WITH_X11 /* X11 */
|
||||
/* X11, start maximized but use default sane size */
|
||||
|
|
Loading…
Reference in New Issue