Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / sculpt_paint / sculpt.c
index 3475aad..1c76f20 100644 (file)
@@ -5687,7 +5687,7 @@ void ED_object_sculptmode_enter_ex(
        }
 
        Paint *paint = BKE_paint_get_active_from_paintmode(scene, ePaintSculpt);
-       BKE_paint_init(scene, ePaintSculpt, PAINT_CURSOR_SCULPT);
+       BKE_paint_init(bmain, scene, ePaintSculpt, PAINT_CURSOR_SCULPT);
 
        paint_cursor_start_explicit(paint, bmain->wm.first, sculpt_poll_view3d);