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>2007-03-30 20:47:42 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-03-30 20:47:42 +0400
commit8da5f2a143863cf4e9e7939927d4c647ad9e1a96 (patch)
tree678d3b029bf4ded92b2885849dc0ec06a3be4d0c /source/blender/python/api2_2x/Scene.c
parenteb3378a38d58e3328d5f6bb4bc5e3f66ceede753 (diff)
allow dealing with vertex groups once an object is created from a mesh.
Diffstat (limited to 'source/blender/python/api2_2x/Scene.c')
-rw-r--r--source/blender/python/api2_2x/Scene.c4
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 );
}