diff options
author | Andrew Hale <TrumanBlending@gmail.com> | 2011-07-31 13:33:04 +0400 |
---|---|---|
committer | Andrew Hale <TrumanBlending@gmail.com> | 2011-07-31 13:33:04 +0400 |
commit | 6a4dc849d2e681bb17d511f6e3e599260188fd08 (patch) | |
tree | c04dd5603fd22096806eebbb5fc4c31dd07c1e5e | |
parent | 492328807b88d828eca5be987ebece68ac90ef33 (diff) |
Fixed the random seed property to be an int not a float
-rw-r--r-- | add_curve_ivygen.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/add_curve_ivygen.py b/add_curve_ivygen.py index 54ac139f..4a73ee0f 100644 --- a/add_curve_ivygen.py +++ b/add_curve_ivygen.py @@ -516,11 +516,10 @@ class IvyGen(bpy.types.Operator): 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 @@ class IvyGen(bpy.types.Operator): 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 @@ def unregister(): if __name__ == "__main__": - register() + register()
\ No newline at end of file |