one more fix in previous commit related to bullet_client.py
This commit is contained in:
@@ -41,7 +41,8 @@ class BulletClient(object):
|
||||
def __getattr__(self, name):
|
||||
"""Inject the client id into Bullet functions."""
|
||||
attribute = getattr(pybullet, name)
|
||||
attribute = functools.partial(attribute, physicsClientId=self._client)
|
||||
if inspect.isbuiltin(attribute):
|
||||
attribute = functools.partial(attribute, physicsClientId=self._client)
|
||||
if name=="disconnect":
|
||||
self._client = -1
|
||||
return attribute
|
||||
|
||||
Reference in New Issue
Block a user