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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user