Small fix in executePluginCommand, now you can pass int arguments while keeping floats null without errors.

This commit is contained in:
Tigran Gasparian 2018-09-03 10:41:38 +02:00
parent 3285143232
commit a670041793

View File

@ -8400,7 +8400,7 @@ static PyObject* pybullet_executePluginCommand(PyObject* self,
PyObject* seqIntArgs = intArgs?PySequence_Fast(intArgs, "expected a sequence"):0;
PyObject* seqFloatArgs = floatArgs?PySequence_Fast(floatArgs, "expected a sequence"):0;
int numIntArgs = seqIntArgs?PySequence_Size(intArgs):0;
int numFloatArgs = seqIntArgs?PySequence_Size(floatArgs):0;
int numFloatArgs = seqFloatArgs?PySequence_Size(floatArgs):0;
int i;
for (i=0;i<numIntArgs;i++)
{