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); } }