diff options
author | Ton Roosendaal <ton@blender.org> | 2005-12-07 22:59:26 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-12-07 22:59:26 +0300 |
commit | 2f0ae40979926c2b298dbed81f18890e020ea1b4 (patch) | |
tree | 78e9d4196ee337cae24ee2417a501ea6c395b8ef /source/blender/src/outliner.c | |
parent | b02ff5f2a2e142a2b422fa7f8f4bb8c017e2e6ea (diff) |
Bugfix from own collection: Rename option in Outliner didn't handle an ESC
correctly. Button wasn't closed then.
Diffstat (limited to 'source/blender/src/outliner.c')
-rw-r--r-- | source/blender/src/outliner.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/outliner.c b/source/blender/src/outliner.c index 76ab56fb574..b565fb2f340 100644 --- a/source/blender/src/outliner.c +++ b/source/blender/src/outliner.c @@ -2505,8 +2505,12 @@ static void outliner_buttons(uiBlock *block, SpaceOops *soops, ListBase *lb) // signal for button to open addqueue(curarea->win, BUT_ACTIVATE, OL_NAMEBUTTON); + + /* otherwise keeps open on ESC */ + tselem->flag &= ~TSE_TEXTBUT; } - if((tselem->flag & TSE_CLOSED)==0) outliner_buttons(block, soops, &te->subtree); + else + if((tselem->flag & TSE_CLOSED)==0) outliner_buttons(block, soops, &te->subtree); } } |