* 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.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user