mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-05 01:50:05 +00:00
fix compile error
bump up to pybullet 3.22
This commit is contained in:
parent
5d75748c0d
commit
0070e0d52b
2
setup.py
2
setup.py
@ -505,7 +505,7 @@ if 'BT_USE_EGL' in EGL_CXX_FLAGS:
|
||||
|
||||
setup(
|
||||
name='pybullet',
|
||||
version='3.2.1',
|
||||
version='3.2.2',
|
||||
description=
|
||||
'Official Python Interface for the Bullet Physics SDK specialized for Robotics Simulation and Reinforcement Learning',
|
||||
long_description=
|
||||
|
@ -159,8 +159,8 @@ void btReducedDeformableBodyHelpers::readBinaryVec(btReducedDeformableBody::tDen
|
||||
{
|
||||
std::ifstream f_in(file, std::ios::in | std::ios::binary);
|
||||
// first get size
|
||||
unsigned int size;
|
||||
f_in.read((char*)&size, sizeof(uint32_t));
|
||||
unsigned int size=0;
|
||||
f_in.read((char*)&size, 4);//sizeof(unsigned int));
|
||||
btAssert(size >= n_size); // make sure the #requested mode is smaller than the #available modes
|
||||
|
||||
// read data
|
||||
@ -182,8 +182,8 @@ void btReducedDeformableBodyHelpers::readBinaryMat(btReducedDeformableBody::tDen
|
||||
{
|
||||
std::ifstream f_in(file, std::ios::in | std::ios::binary);
|
||||
// first get size
|
||||
unsigned int v_size;
|
||||
f_in.read((char*)&v_size, sizeof(uint32_t));
|
||||
unsigned int v_size=0;
|
||||
f_in.read((char*)&v_size, 4);//sizeof(unsigned int));
|
||||
btAssert(v_size >= n_modes * n_full); // make sure the #requested mode is smaller than the #available modes
|
||||
|
||||
// read data
|
||||
|
Loading…
Reference in New Issue
Block a user