diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-16 08:58:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-16 08:58:18 +0400 |
commit | 2fb82920059257fd7ac8e33bfe53de13e7ed53bd (patch) | |
tree | cb8de3a839cb9878d0869d4e436a235346109c16 /source/gameengine/Converter/BL_ArmatureConstraint.cpp | |
parent | c2a1dcf6218cbd56126a5deb1aeaf212d67e54cb (diff) |
style cleanup
Diffstat (limited to 'source/gameengine/Converter/BL_ArmatureConstraint.cpp')
-rw-r--r-- | source/gameengine/Converter/BL_ArmatureConstraint.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/gameengine/Converter/BL_ArmatureConstraint.cpp b/source/gameengine/Converter/BL_ArmatureConstraint.cpp index 7939d6e9235..169205d79e7 100644 --- a/source/gameengine/Converter/BL_ArmatureConstraint.cpp +++ b/source/gameengine/Converter/BL_ArmatureConstraint.cpp @@ -61,7 +61,7 @@ PyTypeObject BL_ArmatureConstraint::Type = { py_base_new }; -PyObject* BL_ArmatureConstraint::py_repr(void) +PyObject *BL_ArmatureConstraint::py_repr(void) { return PyUnicode_FromString(m_name); } @@ -267,8 +267,8 @@ PyMethodDef BL_ArmatureConstraint::Methods[] = { PyAttributeDef BL_ArmatureConstraint::Attributes[] = { // Keep these attributes in order of BCA_ defines!!! used by py_attr_getattr and py_attr_setattr - KX_PYATTRIBUTE_RO_FUNCTION("type",BL_ArmatureConstraint,py_attr_getattr), - KX_PYATTRIBUTE_RO_FUNCTION("name",BL_ArmatureConstraint,py_attr_getattr), + KX_PYATTRIBUTE_RO_FUNCTION("type",BL_ArmatureConstraint,py_attr_getattr), + KX_PYATTRIBUTE_RO_FUNCTION("name",BL_ArmatureConstraint,py_attr_getattr), KX_PYATTRIBUTE_RW_FUNCTION("enforce",BL_ArmatureConstraint,py_attr_getattr,py_attr_setattr), KX_PYATTRIBUTE_RW_FUNCTION("headtail",BL_ArmatureConstraint,py_attr_getattr,py_attr_setattr), KX_PYATTRIBUTE_RO_FUNCTION("lin_error",BL_ArmatureConstraint,py_attr_getattr), @@ -286,7 +286,7 @@ PyAttributeDef BL_ArmatureConstraint::Attributes[] = { }; -PyObject* BL_ArmatureConstraint::py_attr_getattr(void *self_v, const struct KX_PYATTRIBUTE_DEF *attrdef) +PyObject *BL_ArmatureConstraint::py_attr_getattr(void *self_v, const struct KX_PYATTRIBUTE_DEF *attrdef) { BL_ArmatureConstraint* self= static_cast<BL_ArmatureConstraint*>(self_v); bConstraint* constraint = self->m_constraint; @@ -312,12 +312,12 @@ PyObject* BL_ArmatureConstraint::py_attr_getattr(void *self_v, const struct KX_P case BCA_ROTERROR: return PyFloat_FromDouble(constraint->rot_error); case BCA_TARGET: - if (!self->m_target) + if (!self->m_target) Py_RETURN_NONE; else return self->m_target->GetProxy(); case BCA_SUBTARGET: - if (!self->m_subtarget) + if (!self->m_subtarget) Py_RETURN_NONE; else return self->m_subtarget->GetProxy(); |