diff options
author | Ton Roosendaal <ton@blender.org> | 2005-09-03 14:50:21 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-09-03 14:50:21 +0400 |
commit | fd7d224d4cc64af4c1c2a458556ce0838aa9f79e (patch) | |
tree | 19052c1bc3aa3527017e721fa0a0623340e34a83 /source/blender/src/interface.c | |
parent | b787bc2829d9260659650a63dc4ca055b4e69aae (diff) |
Bug fix #2972
Copy/Paste bone name buttons crashed, didn't use the callback for buttons
proper yet.
Also added MAXFRAME defines for buttons, instead of hardcoded values 9000
or 18000
Diffstat (limited to 'source/blender/src/interface.c')
-rw-r--r-- | source/blender/src/interface.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index 78eb0297e64..93ed2617eed 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -488,6 +488,13 @@ static int ui_but_copy_paste(uiBut *but, char mode) strncpy(str, but->poin, but->max); } else { + char backstr[UI_MAX_DRAW_STR]; + /* give butfunc the original text too */ + /* feature used for bone renaming, channels, etc */ + if(but->func_arg2==NULL) { + strncpy(backstr, but->drawstr, UI_MAX_DRAW_STR); + but->func_arg2= backstr; + } strncpy(but->poin, str, but->max); uibut_do_func(but); ui_check_but(but); |