diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-05 09:00:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-05 10:03:33 +0400 |
commit | 5474dfe70168be6918054964663ac7f815372042 (patch) | |
tree | c4968687fdd4b3cb20201523fbba4bbfbcae82f2 /source | |
parent | 4ac5d3245dbecb3465c14345b4198ac7c41b812e (diff) |
Correct hard-coded height for UV-Vertex buttons
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_buttons.c | 1 | ||||
-rw-r--r-- | source/blender/editors/uvedit/uvedit_buttons.c | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_buttons.c b/source/blender/editors/space_view3d/view3d_buttons.c index dfbae90655c..a4d0b8007d4 100644 --- a/source/blender/editors/space_view3d/view3d_buttons.c +++ b/source/blender/editors/space_view3d/view3d_buttons.c @@ -450,7 +450,6 @@ static void v3d_editvertex_buts(uiLayout *layout, View3D *v3d, Object *ob, float } uiBlockEndAlign(block); - uiBlockEndAlign(block); } else { /* apply */ diff --git a/source/blender/editors/uvedit/uvedit_buttons.c b/source/blender/editors/uvedit/uvedit_buttons.c index 78e3811a5fc..6816e785c1f 100644 --- a/source/blender/editors/uvedit/uvedit_buttons.c +++ b/source/blender/editors/uvedit/uvedit_buttons.c @@ -135,6 +135,7 @@ static void uvedit_vertex_buttons(const bContext *C, uiBlock *block) BMEditMesh *em; float center[2]; int imx, imy, step, digits; + float width = 8 * UI_UNIT_X; ED_space_image_get_size(sima, &imx, &imy); @@ -158,9 +159,9 @@ static void uvedit_vertex_buttons(const bContext *C, uiBlock *block) } uiBlockBeginAlign(block); - uiDefButF(block, NUM, B_UVEDIT_VERTEX, IFACE_("X:"), 10, 10, 145, 19, &uvedit_old_center[0], + uiDefButF(block, NUM, B_UVEDIT_VERTEX, IFACE_("X:"), 0, 0, width, UI_UNIT_Y, &uvedit_old_center[0], -10 * imx, 10.0 * imx, step, digits, ""); - uiDefButF(block, NUM, B_UVEDIT_VERTEX, IFACE_("Y:"), 165, 10, 145, 19, &uvedit_old_center[1], + uiDefButF(block, NUM, B_UVEDIT_VERTEX, IFACE_("Y:"), width, 0, width, UI_UNIT_Y, &uvedit_old_center[1], -10 * imy, 10.0 * imy, step, digits, ""); uiBlockEndAlign(block); } |