BGE Cleanup: The value of ikconstraint cannot be NULL at this stage and

therefore it is not necessary the NULL check.
This commit is contained in:
2015-05-28 17:18:05 +02:00
parent 8dc6fabc34
commit 3b158d2e05

View File

@@ -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: