diff options
-rw-r--r-- | source/gameengine/Ketsji/KX_VertexProxy.cpp | 5 | ||||
-rw-r--r-- | source/gameengine/PyDoc/KX_VertexProxy.py | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/source/gameengine/Ketsji/KX_VertexProxy.cpp b/source/gameengine/Ketsji/KX_VertexProxy.cpp index 93ff35b5a9d..6563d0446eb 100644 --- a/source/gameengine/Ketsji/KX_VertexProxy.cpp +++ b/source/gameengine/Ketsji/KX_VertexProxy.cpp @@ -435,9 +435,10 @@ PyObject* KX_VertexProxy::PyGetUV2() PyObject* KX_VertexProxy::PySetUV2(PyObject* args) { MT_Point2 vec; - unsigned int unit=0; + unsigned int unit= RAS_TexVert::SECOND_UV; + PyObject* list= NULL; - if(!PyArg_ParseTuple(args, "Oi:setUV2", &list, &unit)) + if(!PyArg_ParseTuple(args, "O|i:setUV2", &list, &unit)) return NULL; if (!PyVecTo(list, vec)) diff --git a/source/gameengine/PyDoc/KX_VertexProxy.py b/source/gameengine/PyDoc/KX_VertexProxy.py index 114e0d88075..75bd4d788a6 100644 --- a/source/gameengine/PyDoc/KX_VertexProxy.py +++ b/source/gameengine/PyDoc/KX_VertexProxy.py @@ -86,11 +86,13 @@ class KX_VertexProxy(SCA_IObject): @rtype: list [u, v] @return: this vertexes UV (texture) coordinates. """ - def setUV2(uv): + def setUV2(uv, unit): """ Sets the 2nd UV (texture) coordinates of this vertex. @type uv: list [u, v] + @param unit: optional argument, FLAT==1, SECOND_UV==2, defaults to SECOND_UV + @param unit: int """ def getRGBA(): """ |