one more fix in previous commit related to bullet_client.py

This commit is contained in:
Erwin Coumans
2020-01-02 14:45:42 -08:00
parent aae8048722
commit 3c8cf390d4

View File

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