From ba3192bf711c64b616f56b67d4e1212879cf6fac Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 26 Jul 2010 05:31:31 +0000 Subject: [PATCH] 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. --- source/blender/render/intern/source/pointdensity.c | 3 +++ 1 file changed, 3 insertions(+) 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);