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:
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_buttons.c')
-rw-r--r--source/blender/editors/uvedit/uvedit_buttons.c58
1 files changed, 32 insertions, 26 deletions
diff --git a/source/blender/editors/uvedit/uvedit_buttons.c b/source/blender/editors/uvedit/uvedit_buttons.c
index edfbfd0cdc3..f9949f6b671 100644
--- a/source/blender/editors/uvedit/uvedit_buttons.c
+++ b/source/blender/editors/uvedit/uvedit_buttons.c
@@ -175,33 +175,39 @@ static void uvedit_vertex_buttons(const bContext *C, uiBlock *block)
digits = 2;
}
+ uiBut *but;
+
UI_block_align_begin(block);
- uiDefButF(block,
- UI_BTYPE_NUM,
- B_UVEDIT_VERTEX,
- IFACE_("X:"),
- 0,
- 0,
- width,
- UI_UNIT_Y,
- &uvedit_old_center[0],
- UNPACK2(range_xy[0]),
- step,
- digits,
- "");
- uiDefButF(block,
- UI_BTYPE_NUM,
- B_UVEDIT_VERTEX,
- IFACE_("Y:"),
- width,
- 0,
- width,
- UI_UNIT_Y,
- &uvedit_old_center[1],
- UNPACK2(range_xy[1]),
- step,
- digits,
- "");
+ but = uiDefButF(block,
+ UI_BTYPE_NUM,
+ B_UVEDIT_VERTEX,
+ IFACE_("X:"),
+ 0,
+ 0,
+ width,
+ UI_UNIT_Y,
+ &uvedit_old_center[0],
+ UNPACK2(range_xy[0]),
+ 0,
+ 0,
+ "");
+ UI_but_number_step_size_set(but, step);
+ UI_but_number_precision_set(but, digits);
+ but = uiDefButF(block,
+ UI_BTYPE_NUM,
+ B_UVEDIT_VERTEX,
+ IFACE_("Y:"),
+ width,
+ 0,
+ width,
+ UI_UNIT_Y,
+ &uvedit_old_center[1],
+ UNPACK2(range_xy[1]),
+ 0,
+ 0,
+ "");
+ UI_but_number_step_size_set(but, step);
+ UI_but_number_precision_set(but, digits);
UI_block_align_end(block);
}