diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-03-10 09:33:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-03-10 09:33:19 +0300 |
commit | 046508b78dc4c214b0f8a891a24a3720a209c003 (patch) | |
tree | 0c5d65432a17ecc3b1c512cade65234b4eff698c /source/blender/python/api2_2x/gen_utils.c | |
parent | 6da624feaddf0086a0b94c11b22d588e1ab18fd8 (diff) |
added "bpy" as a module imported by default to replace Blender.Main as a new way to access blender data
gen_utils was missing some type checks that made assigning a objects DupGroup and meshes texcomesh not work.
Diffstat (limited to 'source/blender/python/api2_2x/gen_utils.c')
-rw-r--r-- | source/blender/python/api2_2x/gen_utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/gen_utils.c b/source/blender/python/api2_2x/gen_utils.c index d47c53448e2..2a4a57f8021 100644 --- a/source/blender/python/api2_2x/gen_utils.c +++ b/source/blender/python/api2_2x/gen_utils.c @@ -51,6 +51,8 @@ /* GenericLib */ #include "World.h" +#include "Mesh.h" +#include "Group.h" #include "Object.h" #include "Texture.h" #include "Ipo.h" @@ -1054,7 +1056,7 @@ short GenericLib_getType(PyObject * pydata) { //~ if (BPy_Scene_Check(pydata)) return ID_SCE; if (BPy_Object_Check(pydata)) return ID_OB; - //~ if (BPy_Mesh_Check(pydata)) return ID_ME; + if (BPy_Mesh_Check(pydata)) return ID_ME; //~ if (BPy_Curve_Check(pydata)) return ID_CU; //~ if (BPy_Metaball_Check(pydata)) return ID_MB; //~ if (BPy_Material_Check(pydata)) return ID_MA; @@ -1068,7 +1070,7 @@ short GenericLib_getType(PyObject * pydata) //~ //if (BPy_Font_Check(pydata)) return ID_VF; //~ if (BPy_Text_Check(pydata)) return ID_TXT; //~ if (BPy_Sound_Check(pydata)) return ID_SO; - //~ if (BPy_Group_Check(pydata)) return ID_GR; + if (BPy_Group_Check(pydata)) return ID_GR; //~ if (BPy_Armature_Check(pydata)) return ID_AR; //~ if (BPy_Action_Check(pydata)) return ID_AC; |