- Gert de Roost reported an inconsistency between nmesh.getMode and .setMode.  Now .setMode() optionally accepts an int value, as returned by getMode().
- Campbell Barton pointed that object.getData(name_only=True) was by mistake returning the obj name, not the obdata name, as it should.  Fixed now.
- small doc updates

Thanks both for the reports.
This commit is contained in:
2005-03-01 02:37:19 +00:00
parent 6c62b0d8b7
commit 52b84f0e69
4 changed files with 43 additions and 24 deletions

View File

@@ -753,7 +753,7 @@ static PyObject *Object_getData( BPy_Object *self, PyObject *a, PyObject *kwd )
/* user wants only the name of the data object */
if (name_only) {
ID *id = &object->id;
ID *id = object->data;
data_object = Py_BuildValue("s", id->name+2);
if (data_object) return data_object;