* Forgot to update the Object.name variable functionality. Had a bug in it to

return the first 2 identifying characters too - which it shouldn't.
This commit is contained in:
2003-07-08 20:06:00 +00:00
parent f4f7e8ee46
commit da913434db

View File

@@ -698,9 +698,6 @@ static PyObject *Object_getEuler (BPy_Object *self)
static PyObject *Object_getInverseMatrix (BPy_Object *self)
{
float inverse[4][4];
Object * ob;
ob = self->object;
Mat4Invert (inverse, self->object->obmat);
@@ -1363,7 +1360,7 @@ static PyObject* Object_getAttr (BPy_Object *obj, char *name)
if (StringEqual (name, "drawMode"))
return (Py_BuildValue ("b", object->dtx));
if (StringEqual (name, "name"))
return (Py_BuildValue ("s", object->id.name));
return (Py_BuildValue ("s", object->id.name+2));
/* not an attribute, search the methods table */
return Py_FindMethod(BPy_Object_methods, (PyObject *)obj, name);