[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16988] branches/sim_physics/source/ blender/render/intern/source/pointdensity.c: * fix for silly bug in point density with no object in the object field

Matt Ebb matt at mke3.net
Thu Oct 9 03:15:56 CEST 2008


Revision: 16988
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16988
Author:   broken
Date:     2008-10-09 03:15:54 +0200 (Thu, 09 Oct 2008)

Log Message:
-----------
* fix for silly bug in point density with no object in the object field

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-10-08 23:42:00 UTC (rev 16987)
+++ branches/sim_physics/source/blender/render/intern/source/pointdensity.c	2008-10-09 01:15:54 UTC (rev 16988)
@@ -168,10 +168,12 @@
 		Object *ob = pd->object;
 		int i;
 		
+		if (!ob) return;
+		
 		for(psys=ob->particlesystem.first, i=0; i< pd->psysindex-1; i++)
 			psys= psys->next;
 		
-		if (!ob || !psys) return;
+		if (!psys) return;
 		
 		pointdensity_cache_psys(re, pd, ob, psys);
 	}





More information about the Bf-blender-cvs mailing list