[Bf-blender-cvs] [caba67c2fa9] master: Recent check for navigation missed NULL check
Campbell Barton
noreply at git.blender.org
Mon Oct 9 17:43:48 CEST 2017
Commit: caba67c2fa951082174e1f4cde4b63d72c2077fc
Author: Campbell Barton
Date: Tue Oct 10 02:43:56 2017 +1100
Branches: master
https://developer.blender.org/rBcaba67c2fa951082174e1f4cde4b63d72c2077fc
Recent check for navigation missed NULL check
===================================================================
M source/blender/editors/sculpt_paint/paint_cursor.c
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list