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:
authorJoseph Eagar <joeedh@gmail.com>2007-01-15 10:54:08 +0300
committerJoseph Eagar <joeedh@gmail.com>2007-01-15 10:54:08 +0300
commit7a19fe19f659b486500758a87959bcafb4b4b09b (patch)
tree37ef0ed5d21d3f53dcf6a036d19ffb0a67e7f858 /source/blender/python/api2_2x/Blender.c
parent1645e8d287fe77f38ac4672c23b2e5b872ed4975 (diff)
=ID Property Script update and api bugfix=
Turned out somehow I managed to miss adding the proper type refs in Blender.Types for IDGroupType and IDArrayType, which made the script not work. So, I've got it all fixed now. Or at least hopefully :)
Diffstat (limited to 'source/blender/python/api2_2x/Blender.c')
-rw-r--r--source/blender/python/api2_2x/Blender.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c
index 1323af16b8a..485c493fba2 100644
--- a/source/blender/python/api2_2x/Blender.c
+++ b/source/blender/python/api2_2x/Blender.c
@@ -932,7 +932,7 @@ extern PyTypeObject IDGroup_Iter_Type;
void M_Blender_Init(void)
{
PyObject *module;
- PyObject *dict, *smode, *SpaceHandlers, *UnpackModes, *PropertyTypes;
+ PyObject *dict, *smode, *SpaceHandlers, *UnpackModes;
/* G.scene should only aver be NULL if blender is executed in
background mode, not loading a blend file and executing a python script eg.
@@ -965,18 +965,6 @@ void M_Blender_Init(void)
PyModule_AddObject(module, "SpaceHandlers", SpaceHandlers);
}
- PropertyTypes = PyConstant_New();
- if (PropertyTypes) {
- BPy_constant *d = (BPy_constant*)PropertyTypes;
- PyConstant_Insert(d,"STRING",PyInt_FromLong(IDP_STRING));
- PyConstant_Insert(d,"INT",PyInt_FromLong(IDP_INT));
- PyConstant_Insert(d,"FLOAT",PyInt_FromLong(IDP_FLOAT));
- PyConstant_Insert(d,"ARRAY",PyInt_FromLong(IDP_ARRAY));
- PyConstant_Insert(d,"GROUP",PyInt_FromLong(IDP_GROUP));
-
- PyModule_AddObject(module, "PropertyTypes", PropertyTypes);
- }
-
if (G.background)
smode = PyString_FromString("background");
else