diff options
author | Ton Roosendaal <ton@blender.org> | 2005-10-05 00:17:10 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-10-05 00:17:10 +0400 |
commit | 5b25951013caa841fb0bbcf2aeb78b74e80c0e50 (patch) | |
tree | c51c9b822509aa6b1bf4c0780e37aea971d9154f /source/blender/src/outliner.c | |
parent | 38ee277db1cfd48589bd822a85615156a90d9a20 (diff) |
Drivers cannot drive channels of own Object, added error warning for it. I
might allow this once, but it's a lot of new complexities then.
It also means you cannot drive one Bone with another Bone in same Pose.
Diffstat (limited to 'source/blender/src/outliner.c')
-rw-r--r-- | source/blender/src/outliner.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/source/blender/src/outliner.c b/source/blender/src/outliner.c index 2ac8c47db18..ec7cf701a7c 100644 --- a/source/blender/src/outliner.c +++ b/source/blender/src/outliner.c @@ -1838,8 +1838,10 @@ static void pchan_cb(int event, TreeElement *te, TreeStoreElem *tselem) pchan->bone->flag |= BONE_SELECTED; else if(event==2) pchan->bone->flag &= ~BONE_SELECTED; - else if(event==3) + else if(event==3) { pchan->bone->flag |= BONE_HIDDEN_P; + pchan->bone->flag &= ~BONE_SELECTED; + } else if(event==4) pchan->bone->flag &= ~BONE_HIDDEN_P; } @@ -1852,8 +1854,10 @@ static void bone_cb(int event, TreeElement *te, TreeStoreElem *tselem) bone->flag |= BONE_SELECTED; else if(event==2) bone->flag &= ~BONE_SELECTED; - else if(event==3) + else if(event==3) { bone->flag |= BONE_HIDDEN_P; + bone->flag &= ~BONE_SELECTED; + } else if(event==4) bone->flag &= ~BONE_HIDDEN_P; } @@ -1866,10 +1870,12 @@ static void ebone_cb(int event, TreeElement *te, TreeStoreElem *tselem) ebone->flag |= BONE_SELECTED; else if(event==2) ebone->flag &= ~BONE_SELECTED; - else if(event==3) - ebone->flag |= BONE_HIDDEN_P; + else if(event==3) { + ebone->flag |= BONE_HIDDEN_A; + ebone->flag &= ~BONE_SELECTED|BONE_TIPSEL|BONE_ROOTSEL; + } else if(event==4) - ebone->flag &= ~BONE_HIDDEN_P; + ebone->flag &= ~BONE_HIDDEN_A; } static void outliner_do_data_operation(SpaceOops *soops, int type, int event, ListBase *lb, |