From 53fd22acb4d3c1bf7164d1ecdda97c6f66e5be7a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 17 Apr 2014 04:02:42 +1000 Subject: Fix T39756: Extrude, immediate scale While not exactly a bug, switching to scale isnt generally useful to keep normal constraint. --- source/blender/editors/transform/transform.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source') diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 3ee4cd2da00..e3629d241ac 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -1067,6 +1067,12 @@ int transformEvent(TransInfo *t, const wmEvent *event) case TFM_MODAL_RESIZE: /* only switch when... */ if (ELEM5(t->mode, TFM_ROTATION, TFM_TRANSLATION, TFM_TRACKBALL, TFM_EDGE_SLIDE, TFM_VERT_SLIDE)) { + + /* Scale isn't normally very useful after extrude along normals, see T39756 */ + if ((t->con.mode & CON_APPLY) && (t->con.orientation == V3D_MANIP_NORMAL)) { + stopConstraint(t); + } + resetTransModal(t); resetTransRestrictions(t); restoreTransObjects(t); -- cgit v1.2.3