allow dealing with vertex groups once an object is created from a mesh.

This commit is contained in:
Campbell Barton
2007-03-30 16:47:42 +00:00
parent eb3378a38d
commit 8da5f2a143

View File

@@ -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 );
}