OSDN Git Service

fix brushlib Python exception handling
authorMartin Renold <martinxyz@gmx.ch>
Sun, 24 Jul 2011 09:36:05 +0000 (11:36 +0200)
committerBen O'Steen <bosteen@gmail.com>
Mon, 1 Aug 2011 12:48:30 +0000 (13:48 +0100)
commit959b1500caaa7b11c175c644398652c35ad0af5e
tree3164fd341707550ff747b4f539d8836cdf313368
parent10fa2eee7722d89c7f366d6b986c5479f5162bd0
fix brushlib Python exception handling

Return NULL from the original python call (stroke_to) if an
exception has occurred while trying to get the tile memory.

Also, move some Python specific code away from brushlib.
brushlib/brush.hpp
lib/brush.py
lib/mypaintlib.hpp
lib/mypaintlib.i
lib/python_brush.hpp [new file with mode: 0644]
lib/tiledsurface.hpp