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:
authorJoshua Leung <aligorith@gmail.com>2015-10-17 05:41:45 +0300
committerJoshua Leung <aligorith@gmail.com>2015-10-17 05:41:45 +0300
commit422344d40abbb15bb764f75447c8ae356f5dbf12 (patch)
tree2e2d30ec26ba783e756f82a7be011fd0282731a8 /source/blender/editors/transform/transform_conversions.c
parent8a84465eab2fc1f42561f4697b9e8a408d74f81f (diff)
parentbfdb42047af02743d694675700c2e50e98b867ec (diff)
Merge branch 'master' into GPencil_Editing_Stage3
Diffstat (limited to 'source/blender/editors/transform/transform_conversions.c')
-rw-r--r--source/blender/editors/transform/transform_conversions.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index ca735cb9ea4..3dc14855a80 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;
@@ -5554,7 +5559,7 @@ void autokeyframe_ob_cb_func(bContext *C, Scene *scene, View3D *v3d, Object *ob,
if (IS_AUTOKEY_FLAG(scene, ONLYKEYINGSET) && (active_ks)) {
/* only insert into active keyingset
- * NOTE: we assume here that the active Keying Set does not need to have its iterator overridden spe
+ * NOTE: we assume here that the active Keying Set does not need to have its iterator overridden
*/
ANIM_apply_keyingset(C, &dsources, NULL, active_ks, MODIFYKEY_MODE_INSERT, cfra);
}