[Bf-blender-cvs] [12729367733] blender2.8: Tweak for previous commit: Just group all bone properties under the bone name

Joshua Leung noreply at git.blender.org
Wed May 30 17:05:48 CEST 2018


Commit: 127293677334cb342b2c6f01c5a064912b6bc0b4
Author: Joshua Leung
Date:   Wed May 30 17:05:13 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB127293677334cb342b2c6f01c5a064912b6bc0b4

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.

===================================================================

M	source/blender/editors/animation/keyframing.c

===================================================================

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;
 				}



More information about the Bf-blender-cvs mailing list