Blender Git Loki

Git Commits -> Revision 7fd701a

Revision 7fd701a by Willian Padovani Germano (master)
August 17, 2008, 17:11 (GMT)
== BPython API ==

Bug: Draw.Number wasn't properly checking that the initial, min and max values passed to it were numbers. On errors Python would set an error flag that would only be caught later on, masking where the real problem was. Pesky bug...

Reported by André (jaguarandi) on irc, thanks!

PS for bpy devs: PyInt_AsLong returns -1 on error and sets the error flag. With functions like that we need to take special care or not that obvious bugs appear.

Commit Details:

Full Hash: 7fd701ab583e4352b3d04a58a87981d647c491a1
SVN Revision: 16149
Parent Commit: f4d682d
Lines Changed: +6, -0

1 Modified Path:

/source/blender/python/api2_2x/Draw.c (+6, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021