diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-09 18:43:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-10-09 18:43:56 +0300 |
commit | caba67c2fa951082174e1f4cde4b63d72c2077fc (patch) | |
tree | d1b08094006ec1c5d9de91334db35b6028c15e1e /source/blender/editors/sculpt_paint/paint_cursor.c | |
parent | e9d06f086698049447fe004fec20d715b603a571 (diff) |
Recent check for navigation missed NULL check
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_cursor.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c index 5bc21457d54..0cf39644bc1 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.c +++ b/source/blender/editors/sculpt_paint/paint_cursor.c @@ -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; } |