Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorWillian Padovani Germano <wpgermano@gmail.com>2003-09-23 07:02:54 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2003-09-23 07:02:54 +0400
commit63e7c3e07719a25307f738861fc9bc66268d3bd4 (patch)
tree669b818a7d29962285f454a9dff535ebb82e1661 /source
parentd72fe1af415982f92ed0587a80c8257e5c634d8a (diff)
Exppython:
- Object.c: forgot to initialize an object->data pointer to NULL in Object_New
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/api2_2x/Object.c2
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;