diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-26 09:31:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-26 09:31:31 +0400 |
commit | ba3192bf711c64b616f56b67d4e1212879cf6fac (patch) | |
tree | 0d0e63bc33e272d6133493bb1bbb0b17416ca96d /source/blender/render | |
parent | 9941b7d52d38b8d947d455c746afc8e2b98f16ee (diff) |
bugfix [#22962] Crash when starting the render in the attached file (Kino Bug Reporting Sprint :)
NULL checks on tex->pd are elsewhere in the code so this should be ok.
Diffstat (limited to 'source/blender/render')
-rw-r--r-- | source/blender/render/intern/source/pointdensity.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/render/intern/source/pointdensity.c b/source/blender/render/intern/source/pointdensity.c index 4f86f67f0e3..32ae3ba12dc 100644 --- a/source/blender/render/intern/source/pointdensity.c +++ b/source/blender/render/intern/source/pointdensity.c @@ -226,6 +226,9 @@ static void pointdensity_cache_object(Render *re, PointDensity *pd, Object *ob) static void cache_pointdensity(Render *re, Tex *tex) { PointDensity *pd = tex->pd; + + if(!pd) + return; if (pd->point_tree) { BLI_bvhtree_free(pd->point_tree); |