one more fix in previous commit related to bullet_client.py
This commit is contained in:
@@ -41,6 +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)
|
||||||
|
if inspect.isbuiltin(attribute):
|
||||||
attribute = functools.partial(attribute, physicsClientId=self._client)
|
attribute = functools.partial(attribute, physicsClientId=self._client)
|
||||||
if name=="disconnect":
|
if name=="disconnect":
|
||||||
self._client = -1
|
self._client = -1
|
||||||
|
|||||||
Reference in New Issue
Block a user