[Bf-blender-cvs] [244667bff12] greasepencil-object: GPencil: Disable Arc fake points for guides
Antonio Vazquez
noreply at git.blender.org
Wed Oct 16 18:07:57 CEST 2019
Commit: 244667bff122a1ed881570d60a40c91fa8fb2323
Author: Antonio Vazquez
Date: Wed Oct 16 18:07:29 2019 +0200
Branches: greasepencil-object
https://developer.blender.org/rB244667bff122a1ed881570d60a40c91fa8fb2323
GPencil: Disable Arc fake points for guides
WIP: Need points for fast circles.
===================================================================
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 d5041005ec8..85eb606b92f 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -3574,10 +3574,17 @@ static void gpencil_add_fake_points(bContext *C, wmOperator *op, const wmEvent *
GP_Sculpt_Guide *guide = &p->scene->toolsettings->gp_sculpt.guide;
int input_samples = brush->gpencil_settings->input_samples;
- /* ensure sampling when using circular guide */
- if (guide->use_guide && (guide->type == GP_GUIDE_CIRCULAR)) {
- input_samples = GP_MAX_INPUT_SAMPLES;
+
+ /* If using guides don't add points.*/
+ if (guide->use_guide) {
+ return;
}
+ /* TODO: ensure sampling enough points when using circular guide,
+ but the arc must be around the center. (see if above to check other guides only)
+ */
+ // if (guide->use_guide && (guide->type == GP_GUIDE_CIRCULAR)) {
+ // input_samples = GP_MAX_INPUT_SAMPLES;
+ //}
if (input_samples == 0) {
return;
More information about the Bf-blender-cvs
mailing list