[Bf-blender-cvs] [5d5a146f6a1] greasepencil-object: WIP: Apply smooth to fill
Antonio Vazquez
noreply at git.blender.org
Thu Dec 28 22:12:53 CET 2017
Commit: 5d5a146f6a14be6ae3c13e47beb7932b37a37cc2
Author: Antonio Vazquez
Date: Thu Dec 28 22:12:28 2017 +0100
Branches: greasepencil-object
https://developer.blender.org/rB5d5a146f6a14be6ae3c13e47beb7932b37a37cc2
WIP: Apply smooth to fill
===================================================================
M source/blender/editors/gpencil/gpencil_fill.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 65dd16c108d..5b9a8b404fb 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -571,7 +571,6 @@ static void gpencil_stroke_from_stack(tGPDfill *tgpf)
pt++;
}
-#if 0
/* smooth stroke */
float reduce = 0.0f;
float smoothfac = 1.0f;
@@ -582,8 +581,10 @@ static void gpencil_stroke_from_stack(tGPDfill *tgpf)
reduce += 0.25f; // reduce the factor
}
+#if 0
+
/* simplify stroke using Ramer-Douglas-Peucker algorithm */
- BKE_gpencil_simplify_stroke(tgpf->gpl, gps, 1.0f);
+ BKE_gpencil_simplify_stroke(tgpf->gpl, gps, 0.2f);
#endif
/* if axis locked, reproject to plane locked */
More information about the Bf-blender-cvs
mailing list