Commit: 6c0cbfcd530573c3c48b1673fe7573024ab101f6
Author: Dalai Felinto
Date:   Tue Feb 19 17:24:10 2019 -0300
Branches: master
https://developer.blender.org/rB6c0cbfcd530573c3c48b1673fe7573024ab101f6

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.

===================================================================

M       source/blender/editors/interface/interface.c

===================================================================

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)) {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to