[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26740] trunk/blender/source/blender/ makesrna/intern/rna_particle.c: Soft limits and better hard limits to particle properties
Daniel Salazar
zanqdo at gmail.com
Tue Feb 9 17:28:00 CET 2010
Revision: 26740
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26740
Author: zanqdo
Date: 2010-02-09 17:28:00 +0100 (Tue, 09 Feb 2010)
Log Message:
-----------
Soft limits and better hard limits to particle properties
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_particle.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_particle.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_particle.c 2010-02-09 16:05:12 UTC (rev 26739)
+++ trunk/blender/source/blender/makesrna/intern/rna_particle.c 2010-02-09 16:28:00 UTC (rev 26740)
@@ -1450,7 +1450,8 @@
/* initial velocity factors */
prop= RNA_def_property(srna, "normal_factor", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "normfac");//optional if prop names are the same
- RNA_def_property_range(prop, -200.0f, 200.0f);
+ RNA_def_property_range(prop, -1000.0f, 1000.0f);
+ RNA_def_property_ui_range(prop, 0, 100, 1, 2);
RNA_def_property_ui_text(prop, "Normal", "Let the surface normal give the particle a starting speed.");
RNA_def_property_update(prop, 0, "rna_Particle_reset");
@@ -1464,6 +1465,7 @@
prop= RNA_def_property(srna, "random_factor", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "randfac");//optional if prop names are the same
RNA_def_property_range(prop, 0.0f, 200.0f);
+ RNA_def_property_ui_range(prop, 0, 100, 1, 2);
RNA_def_property_ui_text(prop, "Random", "Give the starting speed a random variation.");
RNA_def_property_update(prop, 0, "rna_Particle_reset");
@@ -1476,7 +1478,8 @@
prop= RNA_def_property(srna, "tangent_factor", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "tanfac");
- RNA_def_property_range(prop, -200.0f, 200.0f);
+ RNA_def_property_range(prop, -1000.0f, 1000.0f);
+ RNA_def_property_ui_range(prop, -100, 100, 1, 2);
RNA_def_property_ui_text(prop, "Tangent", "Let the surface tangent give the particle a starting speed.");
RNA_def_property_update(prop, 0, "rna_Particle_reset");
@@ -1496,6 +1499,7 @@
RNA_def_property_float_sdna(prop, NULL, "ob_vel");
RNA_def_property_array(prop, 3);
RNA_def_property_range(prop, -200.0f, 200.0f);
+ RNA_def_property_ui_range(prop, -100, 100, 1, 2);
RNA_def_property_ui_text(prop, "Object Aligned", "Let the emitter object orientation give the particle a starting speed");
RNA_def_property_update(prop, 0, "rna_Particle_reset");
More information about the Bf-blender-cvs
mailing list