diff options
author | Michel Selten <michel@mselten.demon.nl> | 2003-06-03 00:15:50 +0400 |
---|---|---|
committer | Michel Selten <michel@mselten.demon.nl> | 2003-06-03 00:15:50 +0400 |
commit | a127b387607fea5c0433bde26517a9fe575e72f9 (patch) | |
tree | e2d960360b338cbcd0559d377cbdc36717f5b6d0 /source/blender/python/api2_2x/constant.c | |
parent | 271dc5aaf1f025725cd71ffa78a4cdc2b19d8fef (diff) |
* Fix compilation errors on Windows hopefully. Implemented the suggestion done
by Aphex - thanks.
* Added the doc strings to the Object module.
* Added more functionality to the Object module.
Diffstat (limited to 'source/blender/python/api2_2x/constant.c')
-rw-r--r-- | source/blender/python/api2_2x/constant.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/constant.c b/source/blender/python/api2_2x/constant.c index d116589b93b..16dad732a48 100644 --- a/source/blender/python/api2_2x/constant.c +++ b/source/blender/python/api2_2x/constant.c @@ -60,7 +60,7 @@ static PyMappingMethods constantAsMapping = /*****************************************************************************/ PyTypeObject constant_Type = { - PyObject_HEAD_INIT(&PyType_Type) + PyObject_HEAD_INIT(NULL) 0, /* ob_size */ "constant", /* tp_name */ sizeof (C_constant), /* tp_basicsize */ @@ -97,6 +97,8 @@ static PyObject *new_const(void) { /* this is the static one */ C_constant *constant; + constant_Type.ob_type = &PyType_Type; + printf ("In constant_New()\n"); constant = (C_constant *)PyObject_NEW(C_constant, &constant_Type); |