[Bf-blender-cvs] [e19f017800d] greasepencil-object: Clear deprecated colorname field when write data

Antonio Vazquez noreply at git.blender.org
Fri Apr 27 17:29:28 CEST 2018


Commit: e19f017800d1baea62477cada7ff88955e14a809
Author: Antonio Vazquez
Date:   Fri Apr 27 16:44:46 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rBe19f017800d1baea62477cada7ff88955e14a809

Clear deprecated colorname field when write data

This field must be cleared because the string is not used (deprecated).

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

M	source/blender/blenloader/intern/writefile.c

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

diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 379afdf255a..5051284f339 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -2681,6 +2681,7 @@ static void write_gpencil(WriteData *wd, bGPdata *gpd)
 				/* write strokes */
 				writelist(wd, DATA, bGPDstroke, &gpf->strokes);
 				for (bGPDstroke *gps = gpf->strokes.first; gps; gps = gps->next) {
+					gps->colorname[0] = '\0'; /* field deprecated, clear data */
 					writestruct(wd, DATA, bGPDspoint, gps->totpoints, gps->points);
 					for (int i = 0; i < gps->totpoints; ++i) {
 						bGPDspoint *pt = &gps->points[i];



More information about the Bf-blender-cvs mailing list