Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Neumiller <rlneumiller>2020-12-07 05:32:36 +0300
committerJeroen Bakker <jeroen@blender.org>2021-01-13 16:57:45 +0300
commit5baac00bce74995d48e6aea9289b12413c7774bb (patch)
tree26356f8ea4aaae090ecc40d69a0430d87181a8b8
parent29b3035a542c6441512607ae592b333fd5a906d8 (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.c1
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. */