diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-06-12 08:51:50 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-06-12 08:51:50 +0400 |
commit | 6cc45538efefe1062aa0bc0909903af3db5d338d (patch) | |
tree | 64cb07ec5761c70f06ac15c2d4633dd9602cbcb0 /source/blender/python/api2_2x/Draw.c | |
parent | ed6885d72891c63c39bb63a0eb936b454fef753c (diff) |
* Small changes in many files:
- Trying to fix linking problems in OSX;
- Making module .Get functions behave like the ones in Blender 2.25 - 2.27
(Guignot pointed the incompatibility);
- Included more types to Blender.Types;
- Found by luck and corrected two bugs that were making Blender crash;
- Added/updated some simple functions.
Diffstat (limited to 'source/blender/python/api2_2x/Draw.c')
-rw-r--r-- | source/blender/python/api2_2x/Draw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/Draw.c b/source/blender/python/api2_2x/Draw.c index 7bbfa03d8a1..48b0c4c1abb 100644 --- a/source/blender/python/api2_2x/Draw.c +++ b/source/blender/python/api2_2x/Draw.c @@ -38,16 +38,16 @@ static void Button_dealloc(PyObject *self) { - Button *but= (Button*) self; + Button *but = (Button*)self; - if(but->type==3) MEM_freeN(but->val.asstr); + if(but->type == 3) MEM_freeN (but->val.asstr); - PyMem_DEL(self); + PyObject_DEL (self); } static PyObject *Button_getattr(PyObject *self, char *name) { - Button *but= (Button*) self; + Button *but = (Button*)self; if(strcmp(name, "val") == 0) { if (but->type==1) |