diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-09-23 07:02:54 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-09-23 07:02:54 +0400 |
commit | 63e7c3e07719a25307f738861fc9bc66268d3bd4 (patch) | |
tree | 669b818a7d29962285f454a9dff535ebb82e1661 | |
parent | d72fe1af415982f92ed0587a80c8257e5c634d8a (diff) |
Exppython:
- Object.c: forgot to initialize an object->data pointer to NULL in Object_New
-rw-r--r-- | source/blender/python/api2_2x/Object.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c index c9dc788b45a..67dea65f1a9 100644 --- a/source/blender/python/api2_2x/Object.c +++ b/source/blender/python/api2_2x/Object.c @@ -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; |