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:
-rw-r--r--release/scripts/startup/bl_ui/space_toolsystem_toolbar.py10
-rw-r--r--source/blender/editors/mesh/editmesh_tools.c2
-rw-r--r--source/blender/editors/object/object_random.c4
3 files changed, 10 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index f958221ea2e..f304d179d5f 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -776,9 +776,10 @@ class _defs_edit_mesh:
return dict(
text="Smooth",
icon="ops.mesh.vertices_smooth",
- widget=None,
+ widget="WM_GGT_value_operator_redo",
keymap=(
- ("mesh.vertices_smooth", dict(),
+ # Use 0.0, so dragging increases from nothing.
+ ("mesh.vertices_smooth", dict(factor=0.0),
dict(type='ACTIONMOUSE', value='PRESS')),
),
)
@@ -788,9 +789,10 @@ class _defs_edit_mesh:
return dict(
text="Randomize",
icon="ops.transform.vertex_random",
- widget=None,
+ widget="WM_GGT_value_operator_redo",
keymap=(
- ("transform.vertex_random", dict(),
+ # Use 0.0, so dragging increases from nothing.
+ ("transform.vertex_random", dict(offset=0.0),
dict(type='ACTIONMOUSE', value='PRESS')),
),
)
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index 6784d5f7c9a..5793fae79fe 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -2230,7 +2230,7 @@ void MESH_OT_vertices_smooth(wmOperatorType *ot)
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
- RNA_def_float(ot->srna, "factor", 0.5f, -10.0f, 10.0f, "Smoothing", "Smoothing factor", 0.0f, 1.0f);
+ ot->prop = RNA_def_float(ot->srna, "factor", 0.5f, -10.0f, 10.0f, "Smoothing", "Smoothing factor", 0.0f, 1.0f);
RNA_def_int(ot->srna, "repeat", 1, 1, 1000, "Repeat", "Number of times to smooth the mesh", 1, 100);
WM_operatortype_props_advanced_begin(ot);
diff --git a/source/blender/editors/object/object_random.c b/source/blender/editors/object/object_random.c
index 05726e5be2d..41eba6dd07f 100644
--- a/source/blender/editors/object/object_random.c
+++ b/source/blender/editors/object/object_random.c
@@ -139,7 +139,9 @@ void TRANSFORM_OT_vertex_random(struct wmOperatorType *ot)
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
/* props */
- RNA_def_float(ot->srna, "offset", 0.1f, -FLT_MAX, FLT_MAX, "Amount", "Distance to offset", -10.0f, 10.0f);
+ ot->prop = RNA_def_float(
+ 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",
"Increase for uniform offset distance", 0.0f, 1.0f);
RNA_def_float(ot->srna, "normal", 0.0f, 0.0f, 1.0f, "normal",