Skip to content
Snippets Groups Projects
Commit 6a4dc849 authored by Andrew Hale's avatar Andrew Hale
Browse files

Fixed the random seed property to be an int not a float

parent 49232880
No related branches found
No related tags found
No related merge requests found
...@@ -516,11 +516,10 @@ class IvyGen(bpy.types.Operator): ...@@ -516,11 +516,10 @@ class IvyGen(bpy.types.Operator):
min=0.0, min=0.0,
soft_max=2.0, soft_max=2.0,
precision=2) precision=2)
randomSeed = FloatProperty(name="Random Seed", randomSeed = IntProperty(name="Random Seed",
description="The seed governing random generation.", description="The seed governing random generation.",
default=0, default=0,
min=0.0, min=0)
soft_max=10)
maxTime = FloatProperty(name="Maximum Time", maxTime = FloatProperty(name="Maximum Time",
description=("The maximum time to run the generation for " description=("The maximum time to run the generation for "
"in seconds generation (0.0 = Disabled)"), "in seconds generation (0.0 = Disabled)"),
...@@ -557,7 +556,7 @@ class IvyGen(bpy.types.Operator): ...@@ -557,7 +556,7 @@ class IvyGen(bpy.types.Operator):
seedPoint = context.scene.cursor_location seedPoint = context.scene.cursor_location
# Fix the random seed # Fix the random seed
rand_seed(int(self.randomSeed)) rand_seed(self.randomSeed)
# Make the new ivy # Make the new ivy
IVY = Ivy(**self.as_keywords(ignore=('randomSeed', 'growLeaves', IVY = Ivy(**self.as_keywords(ignore=('randomSeed', 'growLeaves',
...@@ -695,4 +694,4 @@ def unregister(): ...@@ -695,4 +694,4 @@ def unregister():
if __name__ == "__main__": if __name__ == "__main__":
register() register()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment