Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2009-12-23 12:55:34 +0300
committerBenoit Bolsee <benoit.bolsee@online.be>2009-12-23 12:55:34 +0300
commit21e2d9b85a9a1dbd0f0faa6aad61c77ac8c4f48f (patch)
treeb8f0170470530fc02a31ce416431b0610039f2a1 /source/gameengine/Expressions/PyObjectPlus.cpp
parent81a7bf2db9beacf664588acddfe458ed216269f8 (diff)
BGE: fix more transpose bug when MathUtils is not used.
Diffstat (limited to 'source/gameengine/Expressions/PyObjectPlus.cpp')
-rw-r--r--source/gameengine/Expressions/PyObjectPlus.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/gameengine/Expressions/PyObjectPlus.cpp b/source/gameengine/Expressions/PyObjectPlus.cpp
index 903ac70c27a..024d155fec4 100644
--- a/source/gameengine/Expressions/PyObjectPlus.cpp
+++ b/source/gameengine/Expressions/PyObjectPlus.cpp
@@ -421,18 +421,18 @@ PyObject *PyObjectPlus::py_get_attrdef(PyObject *self_py, const PyAttributeDef *
#ifdef USE_MATHUTILS
return newMatrixObject(val, attrdef->m_imin, attrdef->m_imax, Py_WRAP, NULL);
#else
- PyObject* rowlist = PyList_New(attrdef->m_imin);
+ PyObject* collist = PyList_New(attrdef->m_imin);
for (unsigned int i=0; i<attrdef->m_imin; i++)
{
- PyObject* collist = PyList_New(attrdef->m_imax);
+ PyObject* col = PyList_New(attrdef->m_imax);
for (unsigned int j=0; j<attrdef->m_imax; j++)
{
- PyList_SET_ITEM(collist,j,PyFloat_FromDouble(val[j]));
+ PyList_SET_ITEM(col,j,PyFloat_FromDouble(val[j]));
}
- PyList_SET_ITEM(rowlist,i,collist);
+ PyList_SET_ITEM(collist,i,col);
val += attrdef->m_imax;
}
- return rowlist;
+ return collist;
#endif
}
}