[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30741] trunk/blender/source/blender/ render/intern/source/pointdensity.c: bugfix [#22962] Crash when starting the render in the attached file ( Kino Bug Reporting Sprint :)
Campbell Barton
ideasman42 at gmail.com
Mon Jul 26 07:31:32 CEST 2010
Revision: 30741
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30741
Author: campbellbarton
Date: 2010-07-26 07:31:31 +0200 (Mon, 26 Jul 2010)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/blender/source/blender/render/intern/source/pointdensity.c
Modified: trunk/blender/source/blender/render/intern/source/pointdensity.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/pointdensity.c 2010-07-26 05:25:09 UTC (rev 30740)
+++ trunk/blender/source/blender/render/intern/source/pointdensity.c 2010-07-26 05:31:31 UTC (rev 30741)
@@ -226,6 +226,9 @@
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);
More information about the Bf-blender-cvs
mailing list