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:
authorCampbell Barton <ideasman42@gmail.com>2017-10-14 10:43:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-10-14 11:05:12 +0300
commit8fb2e46193ecac0c29f99475cecc2fb328629e8c (patch)
tree4c8887b27884182e965a44428d921b5f1b6db244 /source/blender
parent8bac5ea0c5835a4ce0a23723e05f65a650c86214 (diff)
Edit Mesh: click extrude, ensure inverse matrix
Relied on this being set elsewhere which isn't assured.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/mesh/editmesh_extrude.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_extrude.c b/source/blender/editors/mesh/editmesh_extrude.c
index 0f1badd93cd..99e8e0809b1 100644
--- a/source/blender/editors/mesh/editmesh_extrude.c
+++ b/source/blender/editors/mesh/editmesh_extrude.c
@@ -512,6 +512,8 @@ static int edbm_dupli_extrude_cursor_invoke(bContext *C, wmOperator *op, const w
em_setup_viewcontext(C, &vc);
+ invert_m4_m4(vc.obedit->imat, vc.obedit->obmat);
+
ED_view3d_init_mats_rv3d(vc.obedit, vc.rv3d);
use_proj = ((vc.scene->toolsettings->snap_flag & SCE_SNAP) &&
@@ -635,7 +637,6 @@ static int edbm_dupli_extrude_cursor_invoke(bContext *C, wmOperator *op, const w
copy_v3_v3(min, curs);
ED_view3d_win_to_3d_int(vc.v3d, vc.ar, min, event->mval, min);
- invert_m4_m4(vc.obedit->imat, vc.obedit->obmat);
mul_m4_v3(vc.obedit->imat, min); // back in object space
EDBM_op_init(vc.em, &bmop, op, "create_vert co=%v", min);