Blender Git Commit Log
Git Commits -> Revision 2c29af6
Revision 2c29af6 by Maxime Curioni (master) July 22, 2008, 00:27 (GMT) |
soc-2008-mxcurioni: corrected StrokeAttribute, verified with test case. I realized today that it will not be possible to implement getter/setter functionality easily for our Freestyle API. The reason is that Python does not support function overloading as-is. It is possible to 'fake' overloading by taking a general argument object and count the number of arguments in the object (rgbTuple_setCol in Blender's API is a good example of how to go about it). For the time being, we'll get around that problem. The tangible effect of that constraint is that all API setter functions return a 'None' PyObject, instead of returning an integer status code. It is important to note that this problem is due to Freestyle's API being C++ in nature. Fortunately, this shouldn't really impact the usage of the API. If the Blender Python group wants me to correct that, I'll be able to do it. It is just going to take me quite some time correcting it, writing support functions for methods having different types of arguments. |
Commit Details:
Full Hash: 2c29af6a29725d9905ecfd90f0ea08b4c440a848
SVN Revision: 15685
Parent Commit: 7426a3e
Lines Changed: +45, -61
1 Modified Path:
/source/blender/freestyle/intern/python/StrokeAttribute.cpp (+45, -61) (Diff)