=IDProperties bugfix=

Misspelled __members__ __member__ in IDProperty's
getattr function; this made "print dir(prop)" not
work.  Eventually I need to replace the whole thing
with getsetters.

Still need to find out why "print type(a_property)" crashes
blender. :S
This commit is contained in:
2006-11-29 22:30:41 +00:00
parent b7f6b4799e
commit 0c85ea07f1

View File

@@ -84,7 +84,7 @@ PyObject *BPy_IDProperty_getattr(BPy_IDProperty *self, char *name)
//} else if (BSTR_EQ(name, "object")) {
/*hrm the idea is here is to return the wrapped ID object. how the hell
do I do that? eek! */
} else if (BSTR_EQ(name, "__member__"))
} else if (BSTR_EQ(name, "__members__"))
return Py_BuildValue("[s, s, s]", "data", "name", "type");
return NULL;