Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-09-30 11:48:22 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-09-30 18:08:26 +0300
commit7914d04d133b19d701aef0816cfb818f63b1cdb3 (patch)
treea3c0ad9bc8eaa4bb51099bd2b0ad16b66199db13
parent67dffa60ae6bffbe7f5ffff63e4c7291e60a4616 (diff)
Fix T46325: Armature: No more possible to rotate a bone with only its tip selected, in EditMode.
Regression from rB312cb0a957b81233ea, now we make an exception for TFM_ROTATION mode...
-rw-r--r--source/blender/editors/transform/transform_conversions.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index c12418f1a0f..1e642d355f2 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -1253,11 +1253,16 @@ static void createTransArmatureVerts(TransInfo *t)
if (ebo->flag & BONE_TIPSEL) {
copy_v3_v3(td->iloc, ebo->tail);
- /* don't allow single selected tips to have a modified center,
- * causes problem with snapping T45974 */
- copy_v3_v3(td->center,
- ((t->around == V3D_LOCAL) &&
- (ebo->flag & BONE_ROOTSEL)) ? ebo->head : td->iloc);
+ /* Don't allow single selected tips to have a modified center,
+ * causes problem with snapping (see T45974).
+ * However, in rotation mode, we want to keep that 'rotate bone around root with
+ * only its tip selected' behavior (see T46325). */
+ if ((t->around == V3D_LOCAL) && ((t->mode == TFM_ROTATION) || (ebo->flag & BONE_ROOTSEL))) {
+ copy_v3_v3(td->center, ebo->head);
+ }
+ else {
+ copy_v3_v3(td->center, td->iloc);
+ }
td->loc = ebo->tail;
td->flag = TD_SELECTED;