diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-09 17:53:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-09 17:53:18 +0300 |
commit | c9f353956c19abf184496978927c4af5209ec97f (patch) | |
tree | 89352c1d4e2110c583ce4b38ffe70ada6d1d945c /source/gameengine/VideoTexture/VideoBase.cpp | |
parent | 0660078b8bb5eac6f81bd352505dc6f7d72e06c1 (diff) |
use PySequence_Size() rather then PySequence_Length(), this is only kept in python for backwards compatibility.
Diffstat (limited to 'source/gameengine/VideoTexture/VideoBase.cpp')
-rw-r--r-- | source/gameengine/VideoTexture/VideoBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/VideoTexture/VideoBase.cpp b/source/gameengine/VideoTexture/VideoBase.cpp index 322ede7004d..bd620309926 100644 --- a/source/gameengine/VideoTexture/VideoBase.cpp +++ b/source/gameengine/VideoTexture/VideoBase.cpp @@ -147,7 +147,7 @@ PyObject * Video_getRange (PyImage * self, void * closure) int Video_setRange (PyImage * self, PyObject * value, void * closure) { // check validity of parameter - if (value == NULL || !PySequence_Check(value) || PySequence_Length(value) != 2 + if (value == NULL || !PySequence_Check(value) || PySequence_Size(value) != 2 || !PyFloat_Check(PySequence_Fast_GET_ITEM(value, 0)) || !PyFloat_Check(PySequence_Fast_GET_ITEM(value, 1))) { |