[Bf-blender-cvs] [991bb5b5678] greasepencil-object: Fix Thickness curve intialization error

Antonio Vazquez noreply at git.blender.org
Sun Oct 22 10:56:24 CEST 2017


Commit: 991bb5b567804e35ec126b084720c0e5828ac5c6
Author: Antonio Vazquez
Date:   Sun Oct 22 10:56:03 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB991bb5b567804e35ec126b084720c0e5828ac5c6

Fix Thickness curve intialization error

When reload file, the curve was not initializated and produces segment fault.

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

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

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

diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index a8ae5a1a441..f17f2a75b87 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -5473,6 +5473,8 @@ static void direct_link_modifiers(FileData *fd, ListBase *lb)
 			gpmd->cur_thickness = newdataadr(fd, gpmd->cur_thickness);
 			if (gpmd->cur_thickness) {
 				direct_link_curvemapping(fd, gpmd->cur_thickness);
+				/* initialize the curve. Maybe this could be moved to modififer logic */
+				curvemapping_initialize(gpmd->cur_thickness);
 			}
 		}



More information about the Bf-blender-cvs mailing list