Commit: 53fd22acb4d3c1bf7164d1ecdda97c6f66e5be7a
Author: Campbell Barton
Date:   Thu Apr 17 04:02:42 2014 +1000
https://developer.blender.org/rB53fd22acb4d3c1bf7164d1ecdda97c6f66e5be7a

Fix T39756: Extrude, immediate scale

While not exactly a bug, switching to scale isnt generally useful to keep 
normal constraint.

===================================================================

M       source/blender/editors/transform/transform.c

===================================================================

diff --git a/source/blender/editors/transform/transform.c 
b/source/blender/editors/transform/transform.c
index 3ee4cd2..e3629d2 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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to