Commit: fbd80673c87f4e2d961a9c75a2b1d4932df34393 Author: Antonio Vazquez Date: Fri Dec 1 15:56:33 2017 +0100 Branches: greasepencil-object https://developer.blender.org/rBfbd80673c87f4e2d961a9c75a2b1d4932df34393
Fix falloff error when layer has no active frame =================================================================== M source/blender/editors/gpencil/gpencil_brush.c =================================================================== diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c index f57665e0f86..cc81d99fac7 100644 --- a/source/blender/editors/gpencil/gpencil_brush.c +++ b/source/blender/editors/gpencil/gpencil_brush.c @@ -1464,7 +1464,7 @@ static bool gpsculpt_brush_apply_standard(bContext *C, tGP_BrushEditData *gso) gso->falloff = 1.0f; bGPDframe *init_gpf = gpl->actframe; - if (is_multiedit) { + if ((is_multiedit) && (gpl->actframe)){ init_gpf = gpl->frames.first; if (ts->gp_sculpt.flag & GP_BRUSHEDIT_FLAG_FRAME_FALLOFF) { BKE_gp_get_range_selected(gpl, &f_init, &f_end); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs