Skip to content
Snippets Groups Projects
Commit fb613326 authored by Joseph Gilbert's avatar Joseph Gilbert
Browse files

-reimplement OB_Surf support for curves

parent 50ad38cf
No related branches found
No related tags found
No related merge requests found
......@@ -271,7 +271,7 @@ PyObject *M_Object_New(PyObject *self, PyObject *args)
else if (strcmp (str_type, "Lattice") == 0) type = OB_LATTICE;
/* else if (strcmp (str_type, "Mball") == 0) type = OB_MBALL; */
else if (strcmp (str_type, "Mesh") == 0) type = OB_MESH;
/* else if (strcmp (str_type, "Surf") == 0) type = OB_SURF; */
else if (strcmp (str_type, "Surf") == 0) type = OB_SURF;
/* else if (strcmp (str_type, "Wave") == 0) type = OB_WAVE; */
else if (strcmp (str_type, "Empty") == 0) type = OB_EMPTY;
else
......@@ -741,6 +741,7 @@ static PyObject *Object_getInverseMatrix (BPy_Object *self)
Mat4Invert (inverse->mem, self->object->obmat);
return ((PyObject *)inverse);
}
static PyObject *Object_getIpo(BPy_Object *self)
......@@ -1336,20 +1337,16 @@ static PyObject *Object_shareFrom (BPy_Object *self, PyObject *args)
case OB_CAMERA: /* we can probably add the other types, too */
case OB_ARMATURE:
case OB_CURVE:
case OB_SURF:
case OB_LATTICE:
oldid = (ID*) self->object->data;
id = (ID*) object->object->data;
self->object->data = object->object->data;
//-- balagi 01/14/2004
/*
if a mesh is shared the self->object material list must be setup properly !
*/
if ( self->object->type == OB_MESH && id )
{
//if a mesh is shared the self->object material list must be setup properly ! - balagi
if ( self->object->type == OB_MESH && id ){
EXPP_synchronizeMaterialLists(self->object, id);
}
//-- balagi end
id_us_plus (id);
if (oldid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment