Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
6a4dc849
Commit
6a4dc849
authored
13 years ago
by
Andrew Hale
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the random seed property to be an int not a float
parent
49232880
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
add_curve_ivygen.py
+4
-5
4 additions, 5 deletions
add_curve_ivygen.py
with
4 additions
and
5 deletions
add_curve_ivygen.py
+
4
−
5
View file @
6a4dc849
...
...
@@ -516,11 +516,10 @@ class IvyGen(bpy.types.Operator):
min
=
0.0
,
soft_max
=
2.0
,
precision
=
2
)
randomSeed
=
Floa
tProperty
(
name
=
"
Random Seed
"
,
randomSeed
=
In
tProperty
(
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment