diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-07-27 16:48:46 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-07-27 16:48:46 +0400 |
commit | f4def51cd3c225cf3bbe7895f729a29a5d4067e5 (patch) | |
tree | d9690c548b9d840fbf9916dca3877ea54ee6f845 /source/blender/src | |
parent | b2be0a181f26b5bf55ad377936cab424e3de6577 (diff) |
#17309: Copy/pasting bone names (without editing text) doesn't update bone/pose names
The pasting code for text-buttons (when hovering over the button), was incorrectly using the drawstr (i.e. the string that is displayed in the text-button, and includes the 'name' of the button) as the old value. This meant that the renaming code could not correctly detect matches to rename.
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index 18e596abcc7..e7b5b176979 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -532,7 +532,7 @@ static int ui_but_copy_paste(uiBut *but, char mode) /* 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); + strncpy(backstr, but->poin, UI_MAX_DRAW_STR); but->func_arg2= backstr; } strncpy(but->poin, but_copypaste_str, but->max); |