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:
authorWilliam Reynish <billrey@me.com>2019-02-20 23:10:32 +0300
committerWilliam Reynish <billrey@me.com>2019-02-20 23:10:32 +0300
commit1af810b4ff171caa5342aedd6e019b53408b5a9b (patch)
tree9f54cac7e2d9585cc9ec371926a95f4ad6a3591f /source/blender/editors/object/object_random.c
parente2cefc7dad9f254649ed74d32e1ce9875e21b947 (diff)
Units: Use correct units for transform operators
-Use distance for Shrink/Fatten Distance -Use factor for Smooth Factor -Use Factor for Randomize Uniform and Normal values -Use Distance for Randomize distance amount -Randomize Transform Scale was wrongly using distance
Diffstat (limited to 'source/blender/editors/object/object_random.c')
-rw-r--r--source/blender/editors/object/object_random.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/object/object_random.c b/source/blender/editors/object/object_random.c
index 73067be55c7..7c176318c57 100644
--- a/source/blender/editors/object/object_random.c
+++ b/source/blender/editors/object/object_random.c
@@ -158,12 +158,12 @@ void TRANSFORM_OT_vertex_random(struct wmOperatorType *ot)
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
/* props */
- ot->prop = RNA_def_float(
+ ot->prop = RNA_def_float_distance(
ot->srna, "offset", 0.1f, -FLT_MAX, FLT_MAX,
"Amount", "Distance to offset", -10.0f, 10.0f);
- RNA_def_float(ot->srna, "uniform", 0.0f, 0.0f, 1.0f, "Uniform",
+ RNA_def_float_factor(ot->srna, "uniform", 0.0f, 0.0f, 1.0f, "Uniform",
"Increase for uniform offset distance", 0.0f, 1.0f);
- RNA_def_float(ot->srna, "normal", 0.0f, 0.0f, 1.0f, "Normal",
+ RNA_def_float_factor(ot->srna, "normal", 0.0f, 0.0f, 1.0f, "Normal",
"Align offset direction to normals", 0.0f, 1.0f);
RNA_def_int(ot->srna, "seed", 0, 0, 10000, "Random Seed", "Seed for the random number generator", 0, 50);
}