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:
-rw-r--r--source/blender/src/interface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c
index 5f01bad0772..962b9f526a7 100644
--- a/source/blender/src/interface.c
+++ b/source/blender/src/interface.c
@@ -2081,7 +2081,9 @@ static int ui_act_as_text_but(uiBut *but)
/* Uncomment this if you want to see an error message (and annoy users) */
/* error("Invalid Python expression, check console");*/
value = 0.0f; /* Zero out value on error */
- retval = 0; /* invalidate return value if eval failed */
+
+ if(str[0])
+ retval = 0; /* invalidate return value if eval failed, except when string was null */
}
if(but->pointype!=FLO) value= (int)value;