revert bullet_client.py

This commit is contained in:
Erwin Coumans
2020-01-01 20:27:27 -08:00
parent a9455ce891
commit c39afa61cb

View File

@@ -41,7 +41,7 @@ class BulletClient(object):
def __getattr__(self, name): def __getattr__(self, name):
"""Inject the client id into Bullet functions.""" """Inject the client id into Bullet functions."""
attribute = getattr(pybullet, name) attribute = getattr(pybullet, name)
attribute = functools.partial(attribute, physicsClientId=self._client)
if name=="disconnect": if name=="disconnect":
self._client = -1 self._client = -1
return attribute return attribute