[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40465] trunk/blender/source/blender/ blenlib/intern/bpath.c: Fix #28722: Segfault when reading volumetric clouds example

Sergey Sharybin g.ulairi at gmail.com
Thu Sep 22 18:28:39 CEST 2011


Revision: 40465
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40465
Author:   nazgul
Date:     2011-09-22 16:28:38 +0000 (Thu, 22 Sep 2011)
Log Message:
-----------
Fix #28722: Segfault when reading volumetric clouds example

Added checking for voxel data isn't NULL.

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/bpath.c

Modified: trunk/blender/source/blender/blenlib/intern/bpath.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/bpath.c	2011-09-22 16:17:27 UTC (rev 40464)
+++ trunk/blender/source/blender/blenlib/intern/bpath.c	2011-09-22 16:28:38 UTC (rev 40465)
@@ -244,7 +244,7 @@
 		tex= tex->id.next;
 
 	while (tex) {
-		if (tex->type == TEX_VOXELDATA && TEX_VD_IS_SOURCE_PATH(tex->vd->file_format))
+		if (tex->type == TEX_VOXELDATA && tex->vd && TEX_VD_IS_SOURCE_PATH(tex->vd->file_format))
 			break;
 		/* image is not a image with a path, skip it */
 		tex= tex->id.next;




More information about the Bf-blender-cvs mailing list