From 6c0cbfcd530573c3c48b1673fe7573024ab101f6 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Tue, 19 Feb 2019 17:24:10 -0300 Subject: Fix T61696: Filepath buttons not accepting empty values The reported case was with the render output filename, however the same was happening for file open. Bug introduced on c20c203b82260c06888c2a535c08ec383923ee8a. I can't find in the original commit any reasoning for the change that introduced this bug. --- source/blender/editors/interface/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/interface') diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index bbd7daa08a2..5c83410b955 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -2654,7 +2654,7 @@ bool ui_but_string_set(bContext *C, uiBut *but, const char *str) } else if (but->type == UI_BTYPE_TEXT) { /* string */ - if (!but->poin || (str[0] == '\0')) { + if (!but->poin) { str = ""; } else if (ui_but_is_utf8(but)) { -- cgit v1.2.3