[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16700] trunk/blender/source/blender/src/ buttons_object.c: "Fix" for [#17671] Particles spin out of control and pass through when hitting collision object

Janne Karhu jhkarh at utu.fi
Tue Sep 23 13:51:42 CEST 2008


Revision: 16700
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16700
Author:   jhk
Date:     2008-09-23 13:51:40 +0200 (Tue, 23 Sep 2008)

Log Message:
-----------
"Fix" for [#17671] Particles spin out of control and pass through when hitting collision object
-The fix is that particle random size factor should never ever be bigger than 1.0, else negative sizes are possible! Don't know who to blame, but probably my self :)
-The second issue of passing through the deflection and rotating wildly around strange centers is not a bug, but for particles the group and object visualization objects have to be centered on the global origin. I'll probably make an option later to use the object center, but this is how things are for now.

Modified Paths:
--------------
    trunk/blender/source/blender/src/buttons_object.c

Modified: trunk/blender/source/blender/src/buttons_object.c
===================================================================
--- trunk/blender/source/blender/src/buttons_object.c	2008-09-23 08:00:55 UTC (rev 16699)
+++ trunk/blender/source/blender/src/buttons_object.c	2008-09-23 11:51:40 UTC (rev 16700)
@@ -4379,7 +4379,7 @@
 
 	/* size changes must create a recalc event always so that sizes are updated properly */
 	uiDefButF(block, NUM, B_PART_RECALC, "Size:",	butx,(buty-=buth),butw,buth, &part->size, 0.01, 100, 10, 1, "The size of the particles");
-	uiDefButF(block, NUM, B_PART_RECALC, "Rand:",	butx,(buty-=buth),butw,buth, &part->randsize, 0.0, 2.0, 10, 1, "Give the particle size a random variation");
+	uiDefButF(block, NUM, B_PART_RECALC, "Rand:",	butx,(buty-=buth),butw,buth, &part->randsize, 0.0, 1.0, 10, 1, "Give the particle size a random variation");
 
 	uiDefButBitI(block, TOG, PART_SIZEMASS, B_PART_RECALC, "Mass from size",	 butx,(buty-=buth),butw,buth, &part->flag, 0, 0, 0, 0, "Multiply mass with particle size");
 	uiDefButF(block, NUM, B_PART_RECALC, "Mass:",	butx,(buty-=buth),butw,buth, &part->mass, 0.01, 100, 10, 1, "Specify the mass of the particles");





More information about the Bf-blender-cvs mailing list