diff options
Diffstat (limited to 'source/blender/src/outliner.c')
-rw-r--r-- | source/blender/src/outliner.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/source/blender/src/outliner.c b/source/blender/src/outliner.c index e96f6a557a8..f9e9e06e99f 100644 --- a/source/blender/src/outliner.c +++ b/source/blender/src/outliner.c @@ -1453,6 +1453,15 @@ static int tree_element_active_modifier(TreeElement *te, TreeStoreElem *tselem, return 0; } +static int tree_element_active_constraint(TreeElement *te, TreeStoreElem *tselem, int set) +{ + if(set) { + extern_set_butspace(F7KEY, 0); + } + + return 0; +} + static int tree_element_active_text(SpaceOops *soops, TreeElement *te, int set) { ScrArea *sa=NULL; @@ -1535,6 +1544,9 @@ static int tree_element_type_active(SpaceOops *soops, TreeElement *te, TreeStore case TSE_POSE_CHANNEL: return tree_element_active_posechannel(te, tselem, set); break; + case TSE_CONSTRAINT: + return tree_element_active_constraint(te, tselem, set); + break; } return 0; } @@ -1652,8 +1664,7 @@ static int do_outliner_mouse_event(SpaceOops *soops, TreeElement *te, short even enter_editmode(EM_WAITCURSOR); extern_set_butspace(F9KEY, 0); } - } - else { // rest of types + } else { // rest of types tree_element_active(soops, te, 1); } |