diff options
author | Ton Roosendaal <ton@blender.org> | 2008-11-02 15:27:25 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-11-02 15:27:25 +0300 |
commit | 30016909c72924c882a4fd1c233d799d552cb33c (patch) | |
tree | 5e64c0f81ef044da6aea6034d17c41c83605066f /source/blender/src | |
parent | a4f8f06479a962e52240ec4c7e3dd28b0213d691 (diff) |
Bugfix #17920
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
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index 9decbd9a1ce..7417218f253 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -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); |