#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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user