diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-01 16:11:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-01 16:11:10 +0400 |
commit | 9b3e3f3e3197cc7f92f74a9f6b095c65bd43fa8f (patch) | |
tree | 5ec7d4595f092f34c9d6b1cd0a48f5486385fbc7 | |
parent | d370c7619fad3aa2ae4f0bedce4c925c7b05aa15 (diff) |
fix for bug own recent commit [#36904] Snap to Volume is broken with Armature
this is infact an older bug which was exposed by the recent change.
for now only use the change in behavior for scale/rotation.
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 0231ea73322..f5a12fed076 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -129,7 +129,10 @@ */ 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; } } |