[Bf-blender-cvs] [42573e00a50] greasepencil-object: Add stroke to tail
Antonio Vazquez
noreply at git.blender.org
Sat Dec 30 17:25:20 CET 2017
Commit: 42573e00a50ca7a7491a79293cfd59e1814df0f5
Author: Antonio Vazquez
Date: Sat Dec 30 17:25:14 2017 +0100
Branches: greasepencil-object
https://developer.blender.org/rB42573e00a50ca7a7491a79293cfd59e1814df0f5
Add stroke to tail
The initial idea was to add to head (on back), but after testing it's better add at the end on top of previous strokes.
===================================================================
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 53b8376e95f..4cb2c7aa629 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -567,8 +567,8 @@ static void gpencil_stroke_from_stack(tGPDfill *tgpf)
gps->triangles = NULL;
gps->flag |= GP_STROKE_RECALC_CACHES;
- /* add to strokes to head to be on back */
- BLI_addhead(&tgpf->gpf->strokes, gps);
+ /* add stroke to frame */
+ BLI_addtail(&tgpf->gpf->strokes, gps);
/* add points */
pt = gps->points;
More information about the Bf-blender-cvs
mailing list