BGE Fix [#33215] KX_MeshProxy.transformUV() argument ValueError

This commit is contained in:
Daniel Stokes 2013-08-06 21:52:05 +00:00
parent 1dc993ecd2
commit 3c8cdb8c68

@ -303,7 +303,7 @@ PyObject *KX_MeshProxy::PyTransformUV(PyObject *args, PyObject *kwds)
"mesh.transformUV(...): invalid uv_index %d", uvindex);
return NULL;
}
if (uvindex_from < -1 || uvindex_from > 1 || uvindex == -1) {
if (uvindex_from < -1 || uvindex_from > 1) {
PyErr_Format(PyExc_ValueError,
"mesh.transformUV(...): invalid uv_index_from %d", uvindex);
return NULL;