diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-11-27 22:18:13 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-11-27 22:18:13 +0300 |
commit | 1e579c780ca1bd043ba77a77b807cdeaf1dc4bd8 (patch) | |
tree | 003e8155b3665fe3e9b5c2e3d841c6ef30635a2b /source | |
parent | 6c7403b8bd16998720e23d9a5ecd45730ae47dcc (diff) |
[#24935] Proportional translation size stuck to none
Adjust hard and soft limits on proportional size operator property.
Prevent zero in old files with reset if under hard limit (in tools settings).
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 3 | ||||
-rw-r--r-- | source/blender/editors/transform/transform_ops.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index 8ff852bad32..9e37f289351 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -1084,8 +1084,9 @@ int initTransInfo (bContext *C, TransInfo *t, wmOperator *op, wmEvent *event) /* TRANSFORM_FIX_ME rna restrictions */ - if (t->prop_size <= 0) + if (t->prop_size <= 0.00001f) { + printf("Proportional size (%f) under 0.00001, reseting to 1!\n", t->prop_size); t->prop_size = 1.0f; } diff --git a/source/blender/editors/transform/transform_ops.c b/source/blender/editors/transform/transform_ops.c index 94af243eb0e..5f5eb2f1964 100644 --- a/source/blender/editors/transform/transform_ops.c +++ b/source/blender/editors/transform/transform_ops.c @@ -422,7 +422,7 @@ void Transform_Properties(struct wmOperatorType *ot, int flags) { RNA_def_enum(ot->srna, "proportional", proportional_editing_items, 0, "Proportional Editing", ""); RNA_def_enum(ot->srna, "proportional_edit_falloff", proportional_falloff_items, 0, "Proportional Editing Falloff", "Falloff type for proportional editing mode."); - RNA_def_float(ot->srna, "proportional_size", 1, 0, FLT_MAX, "Proportional Size", "", 0, 100); + RNA_def_float(ot->srna, "proportional_size", 1, 0.00001f, FLT_MAX, "Proportional Size", "", 0.001, 100); } if (flags & P_SNAP) |