mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T83296: Unknown actions no longer perform an undo push
str_len_clip is initialized to 0, so when "Unknown Action"
occurs, set str_len_clip appropriately.
Regression in 0688309988
Ref D9759
This commit is contained in:
parent
29b3035a54
commit
5baac00bce
1 changed files with 1 additions and 0 deletions
|
|
@ -842,6 +842,7 @@ static void ui_apply_but_undo(uiBut *but)
|
|||
/* fallback, else we don't get an undo! */
|
||||
if (str == NULL || str[0] == '\0' || str_len_clip == 0) {
|
||||
str = "Unknown Action";
|
||||
str_len_clip = strlen(str);
|
||||
}
|
||||
|
||||
/* Optionally override undo when undo system doesn't support storing properties. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue