Blender Py API: Implemented missing KX_PYATTRIBUTE_TODOs and -DUMMYs.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user