[Bf-blender-cvs] [d22455089c4] greasepencil-object: GP: Fix wrong extreme in primitive

Antonioya noreply at git.blender.org
Fri Dec 7 15:23:16 CET 2018


Commit: d22455089c4f4e637394ed8db7134471c9d7cd25
Author: Antonioya
Date:   Fri Dec 7 15:22:54 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rBd22455089c4f4e637394ed8db7134471c9d7cd25

GP: Fix wrong extreme in primitive

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c
index b5cb516fe83..df5d5533342 100644
--- a/source/blender/editors/gpencil/gpencil_primitive.c
+++ b/source/blender/editors/gpencil/gpencil_primitive.c
@@ -521,7 +521,7 @@ static void gp_primitive_update_strokes(bContext *C, tGPDprimitive *tgpi)
 		/* calc pressure */
 		float pressure = 1.0;
 		if (ELEM(tgpi->type, GP_STROKE_ARC, GP_STROKE_BEZIER)) {
-			if ((gset->flag & GP_SCULPT_SETT_FLAG_PRIMITIVE_CURVE) && (gps->totpoints > 1)) {
+			if (gset->flag & GP_SCULPT_SETT_FLAG_PRIMITIVE_CURVE) {
 				/* normalize value to evaluate curve */
 				float value = (float)i / (gps->totpoints - 1);
 				float curvef = curvemapping_evaluateF(gset->cur_primitive, 0, value);



More information about the Bf-blender-cvs mailing list