Revision: 17287
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17287
Author:   ton
Date:     2008-11-02 13:27:25 +0100 (Sun, 02 Nov 2008)

Log Message:
-----------
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 

Modified Paths:
--------------
    trunk/blender/source/blender/src/interface.c

Modified: trunk/blender/source/blender/src/interface.c
===================================================================
--- trunk/blender/source/blender/src/interface.c        2008-11-02 12:12:03 UTC 
(rev 17286)
+++ trunk/blender/source/blender/src/interface.c        2008-11-02 12:27:25 UTC 
(rev 17287)
@@ -2153,7 +2153,7 @@
                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);


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

Reply via email to