diff options
author | Jorge Bernal <jbernalmartinez@gmail.com> | 2015-05-28 18:18:05 +0300 |
---|---|---|
committer | Jorge Bernal <jbernalmartinez@gmail.com> | 2015-05-28 18:18:50 +0300 |
commit | 3b158d2e05b6541e1b8da9a3498d4ee91f5cbb3d (patch) | |
tree | 970914f3f7d4514bf4ed95880ed224cd4458859d | |
parent | 8dc6fabc34a918ab3a82f93b56d539c4694a8c21 (diff) |
BGE Cleanup: The value of ikconstraint cannot be NULL at this stage and
therefore it is not necessary the NULL check.
-rw-r--r-- | source/gameengine/Converter/BL_ArmatureConstraint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Converter/BL_ArmatureConstraint.cpp b/source/gameengine/Converter/BL_ArmatureConstraint.cpp index e515574df8b..88d82e21d61 100644 --- a/source/gameengine/Converter/BL_ArmatureConstraint.cpp +++ b/source/gameengine/Converter/BL_ArmatureConstraint.cpp @@ -334,7 +334,7 @@ PyObject *BL_ArmatureConstraint::py_attr_getattr(void *self_v, const struct KX_P } switch (attr_order) { case BCA_IKWEIGHT: - return PyFloat_FromDouble((ikconstraint)?ikconstraint->weight : 0.0f); + return PyFloat_FromDouble(ikconstraint->weight); case BCA_IKTYPE: return PyLong_FromLong(ikconstraint->type); case BCA_IKFLAG: |