Fix T39756: Extrude, immediate scale
authorCampbell Barton <ideasman42@gmail.com>
Wed, 16 Apr 2014 18:02:42 +0000 (04:02 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 16 Apr 2014 18:02:42 +0000 (04:02 +1000)
While not exactly a bug, switching to scale isnt generally useful to keep normal constraint.

source/blender/editors/transform/transform.c

index 3ee4cd2da009c11d59a21e3faf5a62f9c4e14454..e3629d241ac50dce823814baed8c379b4c9caea4 100644 (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);