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:
Diffstat (limited to 'source/blender/src/editaction.c')
-rw-r--r--source/blender/src/editaction.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/source/blender/src/editaction.c b/source/blender/src/editaction.c
index 83e341af8fa..5af14219668 100644
--- a/source/blender/src/editaction.c
+++ b/source/blender/src/editaction.c
@@ -2032,13 +2032,33 @@ static void mouse_actionchannels (short mval[])
case ACTTYPE_FILLIPO:
{
bActionChannel *achan= (bActionChannel *)act_channel;
+
achan->flag ^= ACHAN_SHOWIPO;
+
+ if ((mval[0] > 24) && (achan->flag & ACHAN_SHOWIPO)) {
+ /* select+make active achan */
+ deselect_actionchannels(act, 0);
+ select_channel(act, achan, SELECT_ADD);
+
+ /* messy... set active bone */
+ select_poseelement_by_name(achan->name, 2);
+ }
}
break;
case ACTTYPE_FILLCON:
{
bActionChannel *achan= (bActionChannel *)act_channel;
+
achan->flag ^= ACHAN_SHOWCONS;
+
+ if ((mval[0] > 24) && (achan->flag & ACHAN_SHOWCONS)) {
+ /* select+make active achan */
+ deselect_actionchannels(act, 0);
+ select_channel(act, achan, SELECT_ADD);
+
+ /* messy... set active bone */
+ select_poseelement_by_name(achan->name, 2);
+ }
}
break;
case ACTTYPE_ICU: