diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-19 12:51:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-19 12:51:09 +0300 |
commit | c02b26e463134c12b8d23dd2d35e24ae8b01387f (patch) | |
tree | d98988b3cd9ebf276b0461c2c1ac1a527e484a86 | |
parent | 8ae76d724952a63946f7ab17bcb92f90161e3c8b (diff) |
convert rotations into radians (not scale)
-rw-r--r-- | release/scripts/op/object_randomize_transform.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/op/object_randomize_transform.py b/release/scripts/op/object_randomize_transform.py index 8f8284fdefd..5fa90143678 100644 --- a/release/scripts/op/object_randomize_transform.py +++ b/release/scripts/op/object_randomize_transform.py @@ -121,9 +121,9 @@ class RandomizeLocRotSize(bpy.types.Operator): from math import radians seed = self.properties.random_seed - loc = self.properties.loc if self.properties.use_loc else None - rot = self.properties.rot if self.properties.use_rot else None - scale = [radians(val) for val in self.properties.scale] if self.properties.use_scale else None + loc = None if not self.properties.use_loc else self.properties.loc + rot = None if not self.properties.use_rot else self.properties.rot * radians(1.0) + scale = None if not self.properties.use_scale else self.properties.scale scale_even = self.properties.scale_even scale_min = self.properties.scale_min |