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>2005-10-04 19:17:27 +0400
committerKen Hughes <khughes@pacific.edu>2005-10-04 19:17:27 +0400
commitac668ea561bfc70e37079d9f0bf19c60803daa64 (patch)
tree66c02e3e3e720869657b51c2e3a42fb0471ebb14 /source/blender/python/api2_2x/Types.c
parent772459f15c054ae88c06da6209871f6749e8040a (diff)
Added Mesh.New() method; can now create new meshes within the module
Changed Object.link() to allow link objects with both BPython-type meshes Changed Object.getData() to allow retrieving both types of BPython-type meshes Added new mesh types to Types module
Diffstat (limited to 'source/blender/python/api2_2x/Types.c')
-rw-r--r--source/blender/python/api2_2x/Types.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Types.c b/source/blender/python/api2_2x/Types.c
index f8b24468a14..1a770844e68 100644
--- a/source/blender/python/api2_2x/Types.c
+++ b/source/blender/python/api2_2x/Types.c
@@ -68,6 +68,12 @@ void types_InitAll( void )
NMFace_Type.ob_type = &PyType_Type;
NMVert_Type.ob_type = &PyType_Type;
NMesh_Type.ob_type = &PyType_Type;
+ Mesh_Type.ob_type = &PyType_Type;
+ MFace_Type.ob_type = &PyType_Type;
+ MVert_Type.ob_type = &PyType_Type;
+ MEdge_Type.ob_type = &PyType_Type;
+ MCol_Type.ob_type = &PyType_Type;
+ Mesh_Type.ob_type = &PyType_Type;
Object_Type.ob_type = &PyType_Type;
Particle_Type.ob_type = &PyType_Type;
RenderData_Type.ob_type = &PyType_Type;
@@ -117,6 +123,15 @@ PyObject *Types_Init( void )
( PyObject * ) &NMVert_Type );
PyDict_SetItemString( dict, "NMColType", ( PyObject * ) &NMCol_Type );
+ PyDict_SetItemString( dict, "MeshType", ( PyObject * ) &Mesh_Type );
+ PyDict_SetItemString( dict, "MFaceType",
+ ( PyObject * ) &MFace_Type );
+ PyDict_SetItemString( dict, "MEdgeType",
+ ( PyObject * ) &MEdge_Type );
+ PyDict_SetItemString( dict, "MVertType",
+ ( PyObject * ) &MVert_Type );
+ PyDict_SetItemString( dict, "MColType", ( PyObject * ) &MCol_Type );
+
PyDict_SetItemString( dict, "ArmatureType",
( PyObject * ) &Armature_Type );
PyDict_SetItemString( dict, "BoneType", ( PyObject * ) &Bone_Type );