support for mathutils GC wasn't complete since PyObject_GC_Track is supposed to be called once the fields are filled in.

This commit is contained in:
2011-03-03 06:01:31 +00:00
parent 5f5fb5061b
commit c42f3b4e59
5 changed files with 12 additions and 7 deletions

View File

@@ -1124,6 +1124,7 @@ PyObject *newQuaternionObject_cb(PyObject *cb_user, int cb_type, int cb_subtype)
self->cb_user= cb_user;
self->cb_type= (unsigned char)cb_type;
self->cb_subtype= (unsigned char)cb_subtype;
PyObject_GC_Track(self);
}
return (PyObject *)self;