diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-02-19 23:24:10 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-02-19 23:24:10 +0300 |
commit | 6c0cbfcd530573c3c48b1673fe7573024ab101f6 (patch) | |
tree | 74715b88de54ea5b081b1af07720e951a65f2109 /source/blender/editors/interface/interface.c | |
parent | e2a90b804566843416e15558095083ec2e735195 (diff) |
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.
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |