fix a pybullet.c issue on some compilers (don't allow for (int i=...)

make the build_visual_studio_vr_pybullet_double.bat smart enough to find any Python installation in c:\python*
This commit is contained in:
erwin coumans
2016-10-19 07:42:55 -07:00
parent f97cb7002d
commit 3b8090fcc1
2 changed files with 17 additions and 4 deletions

View File

@@ -1268,7 +1268,7 @@ static PyObject* pybullet_getVisualShapeData(PyObject* self, PyObject* args)
b3SharedMemoryStatusHandle statusHandle;
struct b3VisualShapeInformation visualShapeInfo;
int statusType;
int i;
PyObject* pyResultList = 0;
if (size == 1)
@@ -1285,7 +1285,7 @@ static PyObject* pybullet_getVisualShapeData(PyObject* self, PyObject* args)
{
b3GetVisualShapeInformation(sm, &visualShapeInfo);
pyResultList = PyTuple_New(visualShapeInfo.m_numVisualShapes);
for (int i = 0; i < visualShapeInfo.m_numVisualShapes; i++)
for (i = 0; i < visualShapeInfo.m_numVisualShapes; i++)
{
PyObject* visualShapeObList = PyTuple_New(7);
PyObject* item;