bugfix [#22962] Crash when starting the render in the attached file (Kino Bug Reporti...
authorCampbell Barton <ideasman42@gmail.com>
Mon, 26 Jul 2010 05:31:31 +0000 (05:31 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 26 Jul 2010 05:31:31 +0000 (05:31 +0000)
NULL checks on tex->pd are elsewhere in the code so this should be ok.

source/blender/render/intern/source/pointdensity.c

index 4f86f67f0e355b374e21252de8caf05fd704e902..32ae3ba12dcd6a70d34e3a29664d231526ff6b05 100644 (file)
@@ -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);