Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-01-19 18:57:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-19 18:57:02 +0300
commit9396bb2da92080dc44cb255e3f37c8fcac6ead79 (patch)
tree2306bf9a07c14e7a5c880ff26c8d19a0c636118b /release
parent4fe037f53f7ae5a45e4518c6b0b8780ae43b62af (diff)
- AIX ifdef's so windows works, cant test but this seems the most used define. might need to add to buildsystem config.
- transform default scale was too hight, calls to random were inconsistant. (fault of own modif's) - cmake openal include was added twice on recent commit.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/op/object_randomize_transform.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/op/object_randomize_transform.py b/release/scripts/op/object_randomize_transform.py
index 5fa90143678..c1ce6867894 100644
--- a/release/scripts/op/object_randomize_transform.py
+++ b/release/scripts/op/object_randomize_transform.py
@@ -52,6 +52,7 @@ def randomize_selected(seed, loc, rot, scale, scale_even, scale_min):
if scale_even:
sca_x = sca_y = sca_z = uniform(scale[0], - scale[0])
+ uniform(0.0, 0.0), uniform(0.0, 0.0)
else:
sca_x, sca_y, sca_z = rand_vec(scale)
@@ -111,7 +112,7 @@ class RandomizeLocRotSize(bpy.types.Operator):
scale_min = FloatProperty(name="Minimun Scale Factor",
description="Lowest scale percentage possible",
- default=15.0, min=-1.0, max=1.0, precision=3)
+ default=0.15, min=-1.0, max=1.0, precision=3)
scale = FloatVectorProperty(name="Scale",
description="Maximum scale randomization over each axis",