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>2018-05-30 18:05:13 +0300
committerJoshua Leung <aligorith@gmail.com>2018-05-30 18:05:37 +0300
commit127293677334cb342b2c6f01c5a064912b6bc0b4 (patch)
tree8d093ca0b815a67f8a8da8dc993a820c6223cfe6 /source/blender/editors/animation/keyframing.c
parent7661f8a65bace62987e0bb419d4fcaced9000667 (diff)
Tweak for previous commit: Just group all bone properties under the bone name
After more testing, I realised that bendy bone properties should also be grouped, but probably all other per-bone settings too. Now, just group all of them, since it's easier for everyone this way.
Diffstat (limited to 'source/blender/editors/animation/keyframing.c')
-rw-r--r--source/blender/editors/animation/keyframing.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c
index 1e9d8af418a..4f1149ca450 100644
--- a/source/blender/editors/animation/keyframing.c
+++ b/source/blender/editors/animation/keyframing.c
@@ -1835,9 +1835,7 @@ static int insert_key_button_exec(bContext *C, wmOperator *op)
*
* TODO: Perhaps we can extend this behaviour in future for other properties...
*/
- if ((ptr.type == &RNA_PoseBone) &&
- (strstr(identifier, "location") || strstr(identifier, "rotation") || strstr(identifier, "scale")))
- {
+ if (ptr.type == &RNA_PoseBone) {
bPoseChannel *pchan = (bPoseChannel *)ptr.data;
group = pchan->name;
}