Fix T39756: Extrude, immediate scale

While not exactly a bug, switching to scale isnt generally useful to keep normal constraint.
This commit is contained in:
Campbell Barton 2014-04-17 04:02:42 +10:00
parent e6cdce725c
commit 53fd22acb4
Notes: blender-bot 2023-02-14 10:48:25 +01:00
Referenced by issue #39756, Extrude, immediate scale
1 changed files with 6 additions and 0 deletions

View File

@ -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);