projects
/
blender.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d3a76bc
)
Fix #28722: Segfault when reading volumetric clouds example
author
Sergey Sharybin <sergey.vfx@gmail.com>
Thu, 22 Sep 2011 16:28:38 +0000
(16:28 +0000)
committer
Sergey Sharybin <sergey.vfx@gmail.com>
Thu, 22 Sep 2011 16:28:38 +0000
(16:28 +0000)
Added checking for voxel data isn't NULL.
source/blender/blenlib/intern/bpath.c
patch
|
blob
|
history
diff --git
a/source/blender/blenlib/intern/bpath.c
b/source/blender/blenlib/intern/bpath.c
index 654ade8955f800325babc610b1a7c3c4f5c54649..1c5aab7659dfc011ab05e787bb91a63ec0821a12 100644
(file)
--- a/
source/blender/blenlib/intern/bpath.c
+++ b/
source/blender/blenlib/intern/bpath.c
@@
-244,7
+244,7
@@
static struct Tex *tex_stepdata__internal(struct Tex *tex, const int step_next,
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;