[Bf-blender-cvs] [23434a650a8] temp-greasepencil-object-stacksplit: Fix segment fault in subdivision modifier

Antonio Vazquez noreply at git.blender.org
Tue Jun 19 11:21:12 CEST 2018


Commit: 23434a650a8b92694157ae27f30255cde125e32e
Author: Antonio Vazquez
Date:   Tue Jun 19 11:21:02 2018 +0200
Branches: temp-greasepencil-object-stacksplit
https://developer.blender.org/rB23434a650a8b92694157ae27f30255cde125e32e

Fix segment fault in subdivision modifier

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

M	source/blender/gpencil_modifiers/intern/MOD_gpencilsubdiv.c

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

diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilsubdiv.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilsubdiv.c
index 4c2f9f88dd0..34129eddc78 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencilsubdiv.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilsubdiv.c
@@ -90,7 +90,7 @@ static void gp_deformStroke(
 		/* resize the points arrys */
 		gps->totpoints += totnewpoints;
 		gps->points = MEM_recallocN(gps->points, sizeof(*gps->points) * gps->totpoints);
-		gps->points = MEM_recallocN(gps->dvert, sizeof(*gps->dvert) * gps->totpoints);
+		gps->dvert = MEM_recallocN(gps->dvert, sizeof(*gps->dvert) * gps->totpoints);
 		gps->flag |= GP_STROKE_RECALC_CACHES;
 
 		/* move points from last to first to new place */



More information about the Bf-blender-cvs mailing list