diff options
author | Greg Neumiller <rlneumiller> | 2020-12-07 05:32:36 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-01-13 16:57:45 +0300 |
commit | 5baac00bce74995d48e6aea9289b12413c7774bb (patch) | |
tree | 26356f8ea4aaae090ecc40d69a0430d87181a8b8 | |
parent | 29b3035a542c6441512607ae592b333fd5a906d8 (diff) |
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 0688309988e546382748b9e755d84ae8a5059192
Ref D9759
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 5be335f0e6e..44ca5ffcee6 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -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. */ |