[Bf-blender-cvs] [4a79cb53d70] greasepencil-object: GPencil: Don't generate fake point when using Stabilize mode

Antonio Vazquez noreply at git.blender.org
Tue Oct 15 13:18:52 CEST 2019


Commit: 4a79cb53d70011a13db002199325582cc1e84562
Author: Antonio Vazquez
Date:   Tue Oct 15 13:18:32 2019 +0200
Branches: greasepencil-object
https://developer.blender.org/rB4a79cb53d70011a13db002199325582cc1e84562

GPencil: Don't generate fake point when using Stabilize mode

This mode is not compatible with fake points.

===================================================================

M	source/blender/editors/gpencil/gpencil_paint.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 39ab2099e39..859acedf911 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -3559,6 +3559,11 @@ static void gpencil_move_last_stroke_to_back(bContext *C)
 static void gpencil_add_fake_points(bContext *C, wmOperator *op, const wmEvent *event, tGPsdata *p)
 {
   Brush *brush = p->brush;
+  /* Lazy mode do not use fake events. */
+  if (GPENCIL_LAZY_MODE(brush, p->shift)) {
+    return;
+  }
+
   MaterialGPencilStyle *gp_style = p->material->gp_style;
   GP_Sculpt_Guide *guide = &p->scene->toolsettings->gp_sculpt.guide;
   int input_samples = brush->gpencil_settings->input_samples;



More information about the Bf-blender-cvs mailing list