diff options
author | Greg Neumiller <rlneumiller> | 2020-12-07 05:32:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-12-07 05:44:23 +0300 |
commit | 3d0b65f89b2ddad5141acb00685885a995fdc9f3 (patch) | |
tree | 9fda1f5aba7193548d0fa1b6ffacb20cc49a5e42 /source/blender/editors/interface/interface_handlers.c | |
parent | c2a01a6c118ed03fa48aa4f537fe9e5cf711b536 (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
Diffstat (limited to 'source/blender/editors/interface/interface_handlers.c')
-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 3c028977a36..f914ccd7497 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -838,6 +838,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. */ |