Recent check for navigation missed NULL check

This commit is contained in:
Campbell Barton 2017-10-10 02:43:56 +11:00
parent e9d06f0866
commit caba67c2fa
Notes: blender-bot 2023-02-14 06:28:57 +01:00
Referenced by issue #53035, Switching to "Paint" closes Blender
1 changed files with 1 additions and 1 deletions

View File

@ -1003,7 +1003,7 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused))
* mouse over too, not just during a stroke */
view3d_set_viewcontext(C, &vc);
if (vc.rv3d->rflag & RV3D_NAVIGATING) {
if (vc.rv3d && (vc.rv3d->rflag & RV3D_NAVIGATING)) {
return;
}