Exppython:

- Object.c: forgot to initialize an object->data pointer to NULL in Object_New
This commit is contained in:
Willian Padovani Germano 2003-09-23 03:02:54 +00:00
parent d72fe1af41
commit 63e7c3e077

@ -330,6 +330,8 @@ PyObject *M_Object_New(PyObject *self, PyObject *args)
object->lay = 1; // Layer, by default visible
G.totobj++;
object->data = NULL;
/* Create a Python object from it. */
blen_object = (BPy_Object*)PyObject_NEW (BPy_Object, &Object_Type);
blen_object->object = object;