[Bf-blender-cvs] [0889f8c] blender-v2.77-release: Fix for crash of point density textures due to undefined `point_data` on loading.

Lukas Tönne noreply at git.blender.org
Tue Apr 5 10:38:05 CEST 2016


Commit: 0889f8c127622ecc9383e73e20a274063f0bcc03
Author: Lukas Tönne
Date:   Tue Mar 22 15:07:56 2016 +0100
Branches: blender-v2.77-release
https://developer.blender.org/rB0889f8c127622ecc9383e73e20a274063f0bcc03

Fix for crash of point density textures due to undefined `point_data` on loading.

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

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

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

diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 3758374..393d582 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -3838,6 +3838,7 @@ static void direct_link_texture(FileData *fd, Tex *tex)
 		if (tex->pd->falloff_curve) {
 			direct_link_curvemapping(fd, tex->pd->falloff_curve);
 		}
+		tex->pd->point_data = NULL; /* runtime data */
 	}
 	
 	tex->vd = newdataadr(fd, tex->vd);




More information about the Bf-blender-cvs mailing list