Skip to content

Commit 76995b8

Browse files
committed
Change temp file name in convert_mesh_to_body
1 parent 811b9ac commit 76995b8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Unreleased
1616

1717
**Fixed**
1818

19+
* Fixed bug in ``compas.backends.PyBulletClient.convert_mesh_to_body`` circumventing PyBullet's propensity to cache
20+
1921
**Deprecated**
2022

2123
**Removed**
@@ -51,8 +53,8 @@ Unreleased
5153

5254
**Changed**
5355

54-
* The `Configuration` class has moved to `compas.robots`, but is still aliased within `compas_fab.robots`
55-
* Lazily load `V-REP remoteApi` library
56+
* The ``Configuration`` class has moved to ``compas.robots``, but is still aliased within ``compas_fab.robots``
57+
* Lazily load ``V-REP remoteApi`` library
5658

5759
**Fixed**
5860

@@ -64,7 +66,7 @@ Unreleased
6466

6567
**Deprecated**
6668

67-
* `compas_fab.robots.Configuration` is being deprecated in favor of `compas.robots.Configuration`
69+
* ``compas_fab.robots.Configuration`` is being deprecated in favor of ``compas.robots.Configuration``
6870

6971
0.17.0
7072
----------

src/compas_fab/backends/pybullet/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ def convert_mesh_to_body(self, mesh, frame, _name=None, concavity=False, mass=co
622622
-------
623623
:obj:`int`
624624
"""
625-
tmp_obj_path = os.path.join(self._cache_dir.name, 'temp.obj')
625+
tmp_obj_path = os.path.join(self._cache_dir.name, '{}.obj'.format(mesh.guid))
626626
mesh.to_obj(tmp_obj_path)
627627
tmp_obj_path = self._handle_concavity(tmp_obj_path, self._cache_dir.name, concavity, mass)
628628
pyb_body_id = self.body_from_obj(tmp_obj_path, concavity=concavity, mass=mass)

0 commit comments

Comments
 (0)