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:
Diffstat (limited to 'source/blender/src/interface.c')
-rw-r--r--source/blender/src/interface.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c
index fd29a9dbedc..5c4843e8664 100644
--- a/source/blender/src/interface.c
+++ b/source/blender/src/interface.c
@@ -1564,8 +1564,13 @@ static int ui_do_but_TEX(uiBut *but)
but->pos= -1;
but->flag &= ~UI_SELECT;
- uibut_do_func(but);
-
+ if(dev!=ESCKEY) {
+ /* give butfunc the original text too */
+ /* feature used for bone renaming, channels, etc */
+ if(but->func_arg2==NULL) but->func_arg2= backstr;
+ uibut_do_func(but);
+ }
+
ui_check_but(but);
ui_draw_but(but);