[Bf-blender-cvs] [240b47b69da] greasepencil-object: Fix error with colorname

Antonio Vazquez noreply at git.blender.org
Sun Dec 31 11:03:37 CET 2017


Commit: 240b47b69da896fda5e572725b9adc9f2ae3a38a
Author: Antonio Vazquez
Date:   Sun Dec 31 11:03:21 2017 +0100
Branches: greasepencil-object
https://developer.blender.org/rB240b47b69da896fda5e572725b9adc9f2ae3a38a

Fix error with colorname

This solve the Undo problems too.

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

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 a42b5403b8a..e086c25453e 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -556,6 +556,8 @@ static void gpencil_stroke_from_stack(tGPDfill *tgpf)
 
 	gps->palette = tgpf->palette;
 	gps->palcolor = tgpf->palcolor;
+	if (tgpf->palcolor)
+		BLI_strncpy(gps->colorname, tgpf->palcolor->info, sizeof(gps->colorname));
 
 	/* allocate memory for storage points */
 	gps->totpoints = totpoints;



More information about the Bf-blender-cvs mailing list