[Bf-blender-cvs] [790af96] fracture_modifier: crash fix for loading files with dynamic fracture enabled

Martin Felke noreply at git.blender.org
Thu Mar 31 20:07:31 CEST 2016


Commit: 790af966a3441ee56ce6f87912686269a0471e57
Author: Martin Felke
Date:   Thu Mar 31 20:07:07 2016 +0200
Branches: fracture_modifier
https://developer.blender.org/rB790af966a3441ee56ce6f87912686269a0471e57

crash fix for loading files with dynamic fracture enabled

forgot to set runtime listbase pointers of fractureIDs to NULL

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

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

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

diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 0f69752..b89c85e 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -5155,6 +5155,8 @@ static void load_fracture_modifier(FileData* fd, FractureModifierData *fmd)
 	fmd->vertex_island_map = NULL;
 	fmd->material_index_map = NULL;
 	fmd->defgrp_index_map = NULL;
+	fmd->fracture_ids.first = NULL;
+	fmd->fracture_ids.last = NULL;
 
 	/*HARDCODING this for now, until we can version it properly, say with 2.75 ? */
 	if (fd->fileversion < 275) {




More information about the Bf-blender-cvs mailing list