[Bf-blender-cvs] [fbd80673c87] greasepencil-object: Fix falloff error when layer has no active frame
Antonio Vazquez
noreply at git.blender.org
Fri Dec 1 15:56:59 CET 2017
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);
More information about the Bf-blender-cvs
mailing list