[Bf-blender-cvs] [3b158d2] master: BGE Cleanup: The value of ikconstraint cannot be NULL at this stage and therefore it is not necessary the NULL check.
Jorge Bernal
noreply at git.blender.org
Thu May 28 17:19:06 CEST 2015
Commit: 3b158d2e05b6541e1b8da9a3498d4ee91f5cbb3d
Author: Jorge Bernal
Date: Thu May 28 17:18:05 2015 +0200
Branches: master
https://developer.blender.org/rB3b158d2e05b6541e1b8da9a3498d4ee91f5cbb3d
BGE Cleanup: The value of ikconstraint cannot be NULL at this stage and
therefore it is not necessary the NULL check.
===================================================================
M source/gameengine/Converter/BL_ArmatureConstraint.cpp
===================================================================
diff --git a/source/gameengine/Converter/BL_ArmatureConstraint.cpp b/source/gameengine/Converter/BL_ArmatureConstraint.cpp
index e515574..88d82e2 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:
More information about the Bf-blender-cvs
mailing list