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
diff options
context:
space:
mode:
authorWillian Padovani Germano <wpgermano@gmail.com>2003-05-28 08:36:18 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2003-05-28 08:36:18 +0400
commitb7bf9bf1b721ba9a1a5414179763c35a7557ccef (patch)
tree11890d5eda93dc2b460792ce69ac8bd820f9a26e /source/blender/python/api2_2x/constant.c
parenta0e54446f3ac1ba6adf87cd01d4d7b63fbbf538b (diff)
* Added submodule Blender.Material
* Added submodule Blender.Types: Blender Type definitions can't be static anymore. * Some cleanup of now unused defines in Camera.h and Lamp.h
Diffstat (limited to 'source/blender/python/api2_2x/constant.c')
-rw-r--r--source/blender/python/api2_2x/constant.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/constant.c b/source/blender/python/api2_2x/constant.c
index 7640940903d..d116589b93b 100644
--- a/source/blender/python/api2_2x/constant.c
+++ b/source/blender/python/api2_2x/constant.c
@@ -115,10 +115,9 @@ static PyObject *new_const(void)
/*****************************************************************************/
/* Python C_constant methods: */
/*****************************************************************************/
-void constant_insert(C_constant *self, char *key, PyObject *value)
+int constant_insert (C_constant *self, char *name, PyObject *value)
{
- if (self->dict)
- PyDict_SetItemString(self->dict, key, value);
+ return PyDict_SetItemString (self->dict, name, value);
}
/*****************************************************************************/