forked from bartvdbraak/blender
Exppython:
- Object.c: forgot to initialize an object->data pointer to NULL in Object_New
This commit is contained in:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user