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.
This commit is contained in:
Campbell Barton 2010-07-26 05:31:31 +00:00
parent 9941b7d52d
commit ba3192bf71

@ -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);