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:
authorCampbell Barton <ideasman42@gmail.com>2006-04-20 18:26:24 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-04-20 18:26:24 +0400
commit1632a2f888f90eef32d32d51c76a4013efe588b3 (patch)
tree7cb81a36156ff638151e85a54cb0403ed915730a /source/blender/python/api2_2x/Types.c
parent19345ba9ace4494f9aa5d4db69d40f56cbcd6f85 (diff)
Added Group to Blender.Types, tested and working.
Added Group Epydocs, with 2 examples. also added http://en.wikibooks.org/wiki/Blender_3D:_Blending_Into_Python to the blender links main page.
Diffstat (limited to 'source/blender/python/api2_2x/Types.c')
-rw-r--r--source/blender/python/api2_2x/Types.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Types.c b/source/blender/python/api2_2x/Types.c
index c7310dd56f1..3bec07ece19 100644
--- a/source/blender/python/api2_2x/Types.c
+++ b/source/blender/python/api2_2x/Types.c
@@ -50,6 +50,7 @@ extern PyTypeObject NMFace_Type, NMVert_Type, NMCol_Type, NMesh_Type;
extern PyTypeObject MFace_Type, MVert_Type, PVert_Type, MEdge_Type, MCol_Type,
Mesh_Type;
extern PyTypeObject Object_Type;
+extern PyTypeObject Group_Type;
extern PyTypeObject Particle_Type;
extern PyTypeObject Scene_Type, RenderData_Type;
extern PyTypeObject Text_Type, Text3d_Type, Texture_Type;
@@ -104,6 +105,7 @@ void types_InitAll( void )
MCol_Type.ob_type = &PyType_Type;
Mesh_Type.ob_type = &PyType_Type;
Object_Type.ob_type = &PyType_Type;
+ Group_Type.ob_type = &PyType_Type;
RenderData_Type.ob_type = &PyType_Type;
Scene_Type.ob_type = &PyType_Type;
Text_Type.ob_type = &PyType_Type;
@@ -140,6 +142,9 @@ PyObject *Types_Init( void )
/* Blender Object Data Types */
+ PyDict_SetItemString( dict, "GroupType",
+ ( PyObject * ) &Group_Type );
+
PyDict_SetItemString( dict, "SceneType", ( PyObject * ) &Scene_Type );
PyDict_SetItemString( dict, "RenderDataType",
( PyObject * ) &RenderData_Type );