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:
authorCampbell Barton <ideasman42@gmail.com>2007-04-05 15:20:03 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-04-05 15:20:03 +0400
commit54f57cca0872924f3b9ed3a329ef767365fafcc9 (patch)
treeca8d0a1294e338a2a9556db7888d4cad4f207033 /source/blender/src
parentda64ddeacc90ed3234d9d37cf003eb1085c2775f (diff)
renaming obdata was toggling editmode and activating it.
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/outliner.c51
1 files changed, 26 insertions, 25 deletions
diff --git a/source/blender/src/outliner.c b/source/blender/src/outliner.c
index d7dbe78f9a4..10745eb6e9c 100644
--- a/source/blender/src/outliner.c
+++ b/source/blender/src/outliner.c
@@ -1899,36 +1899,37 @@ static int do_outliner_mouse_event(SpaceOops *soops, TreeElement *te, short even
else {
tselem->flag |= TSE_TEXTBUT;
}
- }
-
- if (G.qual & LR_SHIFTKEY) {
- if(tselem->id->lib && tselem->type==0) {
- notice(tselem->id->lib->name);
- }
- }
- /* always makes active object */
- tree_element_active_object(soops, te);
-
- if(tselem->type==0) { // the lib blocks
- /* editmode? */
- if(te->idcode==ID_SCE) {
- if(G.scene!=(Scene *)tselem->id) {
- if(G.obedit) exit_editmode(EM_FREEDATA|EM_FREEUNDO|EM_WAITCURSOR);
- set_scene((Scene *)tselem->id);
+ } else {
+
+ if (G.qual & LR_SHIFTKEY) {
+ if(tselem->id->lib && tselem->type==0) {
+ notice(tselem->id->lib->name);
}
}
- else if(ELEM5(te->idcode, ID_ME, ID_CU, ID_MB, ID_LT, ID_AR)) {
- if(G.obedit) exit_editmode(EM_FREEDATA|EM_FREEUNDO|EM_WAITCURSOR);
- else {
- enter_editmode(EM_WAITCURSOR);
- extern_set_butspace(F9KEY, 0);
+ /* always makes active object */
+ tree_element_active_object(soops, te);
+
+ if(tselem->type==0) { // the lib blocks
+ /* editmode? */
+ if(te->idcode==ID_SCE) {
+ if(G.scene!=(Scene *)tselem->id) {
+ if(G.obedit) exit_editmode(EM_FREEDATA|EM_FREEUNDO|EM_WAITCURSOR);
+ set_scene((Scene *)tselem->id);
+ }
}
- } else { // rest of types
- tree_element_active(soops, te, 1);
+ else if(ELEM5(te->idcode, ID_ME, ID_CU, ID_MB, ID_LT, ID_AR)) {
+ if(G.obedit) exit_editmode(EM_FREEDATA|EM_FREEUNDO|EM_WAITCURSOR);
+ else {
+ enter_editmode(EM_WAITCURSOR);
+ extern_set_butspace(F9KEY, 0);
+ }
+ } else { // rest of types
+ tree_element_active(soops, te, 1);
+ }
+
}
-
+ else tree_element_type_active(soops, te, tselem, 1);
}
- else tree_element_type_active(soops, te, tselem, 1);
}
else if(event==RIGHTMOUSE) {
#ifdef WITH_VERSE