Blender Py API: Implemented missing KX_PYATTRIBUTE_TODOs and -DUMMYs.

This commit is contained in:
2010-08-11 10:36:16 +00:00
parent 4eadcdc389
commit d48991c6c6
12 changed files with 504 additions and 285 deletions

View File

@@ -110,8 +110,14 @@ PyMethodDef KX_ConstraintWrapper::Methods[] = {
};
PyAttributeDef KX_ConstraintWrapper::Attributes[] = {
//KX_PYATTRIBUTE_TODO("constraintId"),
KX_PYATTRIBUTE_RO_FUNCTION("constraint_id", KX_ConstraintWrapper, pyattr_get_constraintId),
{ NULL } //Sentinel
};
PyObject* KX_ConstraintWrapper::pyattr_get_constraintId(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef)
{
KX_ConstraintWrapper* self= static_cast<KX_ConstraintWrapper*>(self_v);
return self->PyGetConstraintId();
}
#endif // DISABLE_PYTHON