diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-03-30 20:47:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-03-30 20:47:42 +0400 |
commit | 8da5f2a143863cf4e9e7939927d4c647ad9e1a96 (patch) | |
tree | 678d3b029bf4ded92b2885849dc0ec06a3be4d0c /source/blender/python | |
parent | eb3378a38d58e3328d5f6bb4bc5e3f66ceede753 (diff) |
allow dealing with vertex groups once an object is created from a mesh.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/api2_2x/Scene.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Scene.c b/source/blender/python/api2_2x/Scene.c index 8556208dffb..bacc747ecf8 100644 --- a/source/blender/python/api2_2x/Scene.c +++ b/source/blender/python/api2_2x/Scene.c @@ -1543,6 +1543,10 @@ typeError: /* make sure data and object materials are consistent */ test_object_materials( (ID *)object->data ); + /* so we can deal with vertex groups */ + if (type == OB_MESH) + ((BPy_Mesh *)py_data)->object = object; + return Object_CreatePyObject( object ); } |