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:
authorKen Hughes <khughes@pacific.edu>2006-04-23 06:34:50 +0400
committerKen Hughes <khughes@pacific.edu>2006-04-23 06:34:50 +0400
commit8001a8b409833c3ff4e1dce36e9bebc36fb3e859 (patch)
tree35f3811a49bb45fc8cbed35a34a27e80c7a4bec1 /source/blender/python/api2_2x/Types.c
parenta7863efb8abf60f35407c6d66127d65db089f33d (diff)
===Python API===
Initial commit for new Modifier API. Probably does about 70-75% of what it should, but it's a start.
Diffstat (limited to 'source/blender/python/api2_2x/Types.c')
-rw-r--r--source/blender/python/api2_2x/Types.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Types.c b/source/blender/python/api2_2x/Types.c
index 3bec07ece19..858e733fb61 100644
--- a/source/blender/python/api2_2x/Types.c
+++ b/source/blender/python/api2_2x/Types.c
@@ -59,6 +59,7 @@ extern PyTypeObject property_Type;
extern PyTypeObject buffer_Type, constant_Type, euler_Type;
extern PyTypeObject matrix_Type, quaternion_Type, rgbTuple_Type, vector_Type;
extern PyTypeObject point_Type;
+extern PyTypeObject Modifier_Type, ModSeq_Type;
char M_Types_doc[] = "The Blender Types module\n\n\
This module is a dictionary of all Blender Python types";
@@ -121,6 +122,9 @@ void types_InitAll( void )
vector_Type.ob_type = &PyType_Type;
property_Type.ob_type = &PyType_Type;
point_Type.ob_type = &PyType_Type;
+ PyType_Ready( &Modifier_Type );
+ PyType_Ready( &ModSeq_Type );
+
}
/*****************************************************************************/
@@ -223,6 +227,10 @@ PyObject *Types_Init( void )
( PyObject * ) &property_Type );
PyDict_SetItemString( dict, "pointType",
( PyObject * ) &point_Type );
+ PyDict_SetItemString( dict, "ModifierType",
+ ( PyObject * ) &Modifier_Type );
+ PyDict_SetItemString( dict, "ModSeqType",
+ ( PyObject * ) &ModSeq_Type );
return submodule;
}