[Bf-blender-cvs] [bd79c02c4bc] experimental_gp_weight: Fix error loading saved files

Antonio Vazquez noreply at git.blender.org
Wed May 16 16:07:55 CEST 2018


Commit: bd79c02c4bcb6bf5f00ca40ac93528235dcdc680
Author: Antonio Vazquez
Date:   Wed May 16 16:07:48 2018 +0200
Branches: experimental_gp_weight
https://developer.blender.org/rBbd79c02c4bcb6bf5f00ca40ac93528235dcdc680

Fix error loading saved files

The weight array was not initializated.

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

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

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

diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 5372edf8a3f..e8cb2eac100 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -6356,6 +6356,7 @@ static void direct_link_gpencil(FileData *fd, bGPdata *gpd)
 				gps->points = newdataadr(fd, gps->points);
 				
 				/* relink weight data */
+				gps->dvert = newdataadr(fd, gps->dvert);
 				direct_link_dverts(fd, gps->totpoints, gps->dvert);
 
 				/* the triangulation is not saved, so need to be recalculated */



More information about the Bf-blender-cvs mailing list