[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2204] trunk/py/scripts/addons/ add_curve_ivygen.py: Fixed the random seed property to be an int not a float

Andrew Hale TrumanBlending at gmail.com
Sun Jul 31 11:33:05 CEST 2011


Revision: 2204
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2204
Author:   trumanblending
Date:     2011-07-31 09:33:04 +0000 (Sun, 31 Jul 2011)
Log Message:
-----------
Fixed the random seed property to be an int not a float

Modified Paths:
--------------
    trunk/py/scripts/addons/add_curve_ivygen.py

Modified: trunk/py/scripts/addons/add_curve_ivygen.py
===================================================================
--- trunk/py/scripts/addons/add_curve_ivygen.py	2011-07-31 08:38:12 UTC (rev 2203)
+++ trunk/py/scripts/addons/add_curve_ivygen.py	2011-07-31 09:33:04 UTC (rev 2204)
@@ -516,11 +516,10 @@
                     min=0.0,
                     soft_max=2.0,
                     precision=2)
-    randomSeed = FloatProperty(name="Random Seed",
+    randomSeed = IntProperty(name="Random Seed",
                     description="The seed governing random generation.",
                     default=0,
-                    min=0.0,
-                    soft_max=10)
+                    min=0)
     maxTime = FloatProperty(name="Maximum Time",
                     description=("The maximum time to run the generation for "
                                  "in seconds generation (0.0 = Disabled)"),
@@ -557,7 +556,7 @@
         seedPoint = context.scene.cursor_location
 
         # Fix the random seed
-        rand_seed(int(self.randomSeed))
+        rand_seed(self.randomSeed)
 
         # Make the new ivy
         IVY = Ivy(**self.as_keywords(ignore=('randomSeed', 'growLeaves',
@@ -695,4 +694,4 @@
 
 
 if __name__ == "__main__":
-    register()
+    register()
\ No newline at end of file



More information about the Bf-extensions-cvs mailing list