[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50298] trunk/blender/intern/cycles/render /particles.cpp: Cycles: Fully initialize the dummy particle at index 0.

Lukas Toenne lukas.toenne at googlemail.com
Fri Aug 31 21:39:06 CEST 2012


Revision: 50298
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50298
Author:   lukastoenne
Date:     2012-08-31 19:39:06 +0000 (Fri, 31 Aug 2012)
Log Message:
-----------
Cycles: Fully initialize the dummy particle at index 0.

Modified Paths:
--------------
    trunk/blender/intern/cycles/render/particles.cpp

Modified: trunk/blender/intern/cycles/render/particles.cpp
===================================================================
--- trunk/blender/intern/cycles/render/particles.cpp	2012-08-31 19:39:04 UTC (rev 50297)
+++ trunk/blender/intern/cycles/render/particles.cpp	2012-08-31 19:39:06 UTC (rev 50298)
@@ -67,6 +67,10 @@
 	
 	/* dummy particle */
 	particles[0] = make_float4(0.0f, 0.0f, 0.0f, 0.0f);
+	particles[1] = make_float4(0.0f, 0.0f, 0.0f, 0.0f);
+	particles[2] = make_float4(0.0f, 0.0f, 0.0f, 0.0f);
+	particles[3] = make_float4(0.0f, 0.0f, 0.0f, 0.0f);
+	particles[4] = make_float4(0.0f, 0.0f, 0.0f, 0.0f);
 	
 	int i = 1;
 	foreach(ParticleSystem *psys, scene->particle_systems) {




More information about the Bf-blender-cvs mailing list