made mesh getFromObject also copy the meshes flag

This commit is contained in:
2006-10-22 02:43:04 +00:00
parent 23eb8b7a1f
commit 0e569035c7

View File

@@ -5868,6 +5868,7 @@ static PyObject *Mesh_getFromObject( BPy_Mesh * self, PyObject * args )
case OB_MESH:
if (!cage) {
Mesh *origmesh= ob->data;
self->mesh->flag= origmesh->flag;
self->mesh->mat = MEM_dupallocN(origmesh->mat);
self->mesh->totcol = origmesh->totcol;
if( origmesh->mat ) {