From 63e7c3e07719a25307f738861fc9bc66268d3bd4 Mon Sep 17 00:00:00 2001 From: Willian Padovani Germano Date: Tue, 23 Sep 2003 03:02:54 +0000 Subject: Exppython: - Object.c: forgot to initialize an object->data pointer to NULL in Object_New --- source/blender/python/api2_2x/Object.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source') 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; -- cgit v1.2.3