When entering a wrong expression (or garbish) in a Nkey panel button,
the cursor jumps to the place where the button was clicked. On failure
the button could return a B_NOP, not a 0
This commit is contained in:
Ton Roosendaal
2008-11-02 12:27:25 +00:00
parent a4f8f06479
commit 30016909c7

View File

@@ -2153,7 +2153,7 @@ static int ui_act_as_text_but(uiBut *but)
value = 0.0f; /* Zero out value on error */
if(str[0])
retval = 0; /* invalidate return value if eval failed, except when string was null */
retval = B_NOP; /* invalidate return value if eval failed, except when string was null */
}
#else
value=atof(str);