From 3b158d2e05b6541e1b8da9a3498d4ee91f5cbb3d Mon Sep 17 00:00:00 2001 From: Jorge Bernal Date: Thu, 28 May 2015 17:18:05 +0200 Subject: BGE Cleanup: The value of ikconstraint cannot be NULL at this stage and therefore it is not necessary the NULL check. --- source/gameengine/Converter/BL_ArmatureConstraint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/gameengine') 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: -- cgit v1.2.3