bug [#25535] proportional editing bug
authorCampbell Barton <ideasman42@gmail.com>
Mon, 10 Jan 2011 06:00:56 +0000 (06:00 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 10 Jan 2011 06:00:56 +0000 (06:00 +0000)
disable PET when rotating/scaling around face centers to make it more obvious its unsupported.

source/blender/editors/transform/transform_generics.c

index 11fd02b340e3d59c78e9a72050d7b6bd61d90ffa..dbf984b665950225c814ba30ca9056c2c9908177 100644 (file)
@@ -983,6 +983,13 @@ int initTransInfo (bContext *C, TransInfo *t, wmOperator *op, wmEvent *event)
                {
                        t->current_orientation = v3d->twmode;
                }
+
+               /* exceptional case */
+               if(t->around==V3D_LOCAL && (t->settings->selectmode & SCE_SELECT_FACE)) {
+                       if(ELEM3(t->mode, TFM_ROTATION, TFM_RESIZE, TFM_TRACKBALL)) {
+                               t->options |= CTX_NO_PET;
+                       }
+               }
        }
        else if(t->spacetype==SPACE_IMAGE || t->spacetype==SPACE_NODE)
        {