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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2017-11-23 22:14:31 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2017-11-23 22:17:31 +0300
commit5e13097dc3a3463d6b8643a5ace673d7a462c934 (patch)
treee286e5cedb2946f7423a8a208644448a6264213a /source/blender/editors/mesh
parentdebd9f6ea1286533d4d5c9262fa6724c862fe35e (diff)
Fix T53145: bevel tool fails when used a second time.
Pixel size was not initial early enough. For first time this was not a problem because the bevel amount starts at 0 then, and after the mouse moves the pixel size is initialized. For the second time the bevel amount starts at a non-zero value, and it failed then.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r--source/blender/editors/mesh/editmesh_bevel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_bevel.c b/source/blender/editors/mesh/editmesh_bevel.c
index 2af05a9ad8d..e541df8ffa3 100644
--- a/source/blender/editors/mesh/editmesh_bevel.c
+++ b/source/blender/editors/mesh/editmesh_bevel.c
@@ -335,11 +335,12 @@ static int edbm_bevel_invoke(bContext *C, wmOperator *op, const wmEvent *event)
* ideally this will never happen and should be checked for above */
opdata->mcenter[0] = opdata->mcenter[1] = 0;
}
- edbm_bevel_calc_initial_length(op, event, false);
/* for OFFSET_VALUE only, the scale is the size of a pixel under the mouse in 3d space */
opdata->scale[OFFSET_VALUE] = rv3d ? ED_view3d_pixel_size(rv3d, center_3d) : 1.0f;
+ edbm_bevel_calc_initial_length(op, event, false);
+
edbm_bevel_update_header(C, op);
if (!edbm_bevel_calc(op)) {