diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-12 04:15:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-12 04:15:02 +0400 |
commit | 5aaf3ede76c91a062d09360301083b6f75a6a89f (patch) | |
tree | 4283c97a354f10b7ad24db9df97de023fb4e30a7 /source/gameengine/Converter | |
parent | c8b19b7b7fee817e4c7934973c99040747be53c3 (diff) |
code cleanup: remove unused var for windows and style edit (remove spaces between 'var[num]')
Diffstat (limited to 'source/gameengine/Converter')
-rw-r--r-- | source/gameengine/Converter/BL_ArmatureChannel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Converter/BL_ArmatureChannel.cpp b/source/gameengine/Converter/BL_ArmatureChannel.cpp index 80a9db4db83..f464d6c4b59 100644 --- a/source/gameengine/Converter/BL_ArmatureChannel.cpp +++ b/source/gameengine/Converter/BL_ArmatureChannel.cpp @@ -307,7 +307,7 @@ int BL_ArmatureChannel::py_attr_set_joint_rotation(void *self_v, const struct KX float quat[4]; if (!PySequence_Check(value) || PySequence_Size(value) != 3) { - PyErr_SetString(PyExc_AttributeError, "expected a sequence of [3] floats"); + PyErr_SetString(PyExc_AttributeError, "expected a sequence of 3 floats"); return PY_SET_ATTR_FAIL; } for (int i=0; i<3; i++) { @@ -315,7 +315,7 @@ int BL_ArmatureChannel::py_attr_set_joint_rotation(void *self_v, const struct KX joints[i] = PyFloat_AsDouble(item); Py_DECREF(item); if (joints[i] == -1.0f && PyErr_Occurred()) { - PyErr_SetString(PyExc_AttributeError, "expected a sequence of [3] floats"); + PyErr_SetString(PyExc_AttributeError, "expected a sequence of 3 floats"); return PY_SET_ATTR_FAIL; } } |