[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17600] branches/sim_physics/source/ blender/render/intern/source/pointdensity.c: * Some extra sanity checks for point density
Matt Ebb
matt at mke3.net
Fri Nov 28 08:12:32 CET 2008
Revision: 17600
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17600
Author: broken
Date: 2008-11-28 08:12:32 +0100 (Fri, 28 Nov 2008)
Log Message:
-----------
* Some extra sanity checks for point density
Modified Paths:
--------------
branches/sim_physics/source/blender/render/intern/source/pointdensity.c
Modified: branches/sim_physics/source/blender/render/intern/source/pointdensity.c
===================================================================
--- branches/sim_physics/source/blender/render/intern/source/pointdensity.c 2008-11-28 06:08:58 UTC (rev 17599)
+++ branches/sim_physics/source/blender/render/intern/source/pointdensity.c 2008-11-28 07:12:32 UTC (rev 17600)
@@ -230,7 +230,9 @@
int i;
if (!ob) return;
+ if (BLI_countlist(&ob->particlesystem) == 0) return;
+
for(psys=ob->particlesystem.first, i=0; i< pd->psysindex-1; i++)
psys= psys->next;
@@ -260,6 +262,8 @@
{
PointDensity *pd = tex->pd;
+ if (!pd) return;
+
if (pd->point_tree) {
BLI_bvhtree_free(pd->point_tree);
pd->point_tree = NULL;
More information about the Bf-blender-cvs
mailing list