Sculpt: Fix crash when using grab brush

Was wrong paint structure deducted from context.

Test plan:

With default cube, go to sculpt mode, switch to grab brush
and try to sculpt.
This commit is contained in:
2018-05-03 17:42:46 +02:00
parent e684e0ec95
commit 7d61803640

View File

@@ -214,8 +214,7 @@ Paint *BKE_paint_get_active_from_context(const bContext *C)
}
}
else {
/* default to image paint */
return &ts->imapaint.paint;
return BKE_paint_get_active(sce, view_layer);
}
}