diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2005-03-01 05:37:19 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2005-03-01 05:37:19 +0300 |
commit | 52b84f0e6930ae80e05442d2a88810ae517b586a (patch) | |
tree | 00872d695b7fcf48e21621ba0cd1420683764195 /source/blender/python/api2_2x/Object.c | |
parent | 6c62b0d8b7ec9a4513304dd817d7b7a3a5f72f65 (diff) |
BPython:
- 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.
Diffstat (limited to 'source/blender/python/api2_2x/Object.c')
-rw-r--r-- | source/blender/python/api2_2x/Object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c index b400a059781..5b59449c8ea 100644 --- a/source/blender/python/api2_2x/Object.c +++ b/source/blender/python/api2_2x/Object.c @@ -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; |