fix for bug own recent commit [#36904] Snap to Volume is broken with Armature
authorCampbell Barton <ideasman42@gmail.com>
Tue, 1 Oct 2013 12:11:10 +0000 (12:11 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 1 Oct 2013 12:11:10 +0000 (12:11 +0000)
this is infact an older bug which was exposed by the recent change.
for now only use the change in behavior for scale/rotation.

source/blender/editors/transform/transform_conversions.c

index 0231ea733220c8d82599b67c96a9b4ec595a25f0..f5a12fed07623f126f6adf4556ae6a1db48c39c3 100644 (file)
  */
 static void transform_around_single_fallback(TransInfo *t)
 {
-       if (t->total == 1 && ELEM3(t->around, V3D_CENTER, V3D_CENTROID, V3D_ACTIVE)) {
+       if ((t->total == 1) &&
+           (ELEM3(t->around, V3D_CENTER, V3D_CENTROID, V3D_ACTIVE)) &&
+           (ELEM3(t->mode, TFM_RESIZE, TFM_ROTATION, TFM_TRACKBALL)))
+       {
                t->around = V3D_LOCAL;
        }
 }