diff options
author | Jacques Guignot <guignot@wanadoo.fr> | 2003-12-13 20:15:15 +0300 |
---|---|---|
committer | Jacques Guignot <guignot@wanadoo.fr> | 2003-12-13 20:15:15 +0300 |
commit | 6653af79142aa929eb3d131f8fced363b2c4b828 (patch) | |
tree | 96216c578e0e75fd0ab4997dac8000542e601e5e /source | |
parent | 0a9f635972e23377cf99967af5745dd7ce743a04 (diff) |
support for curve objects.(the code was ready, but commented out)
modified functions : New and Object_shareFrom
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/api2_2x/Object.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c index 887d9e930e1..ac31b7ad195 100644 --- a/source/blender/python/api2_2x/Object.c +++ b/source/blender/python/api2_2x/Object.c @@ -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 @@ -1325,6 +1325,7 @@ 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; |