Skip to content

Commit

Permalink
Fix saving the PHYSCOLLIDE BSP lump.
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSpen210 committed Dec 6, 2024
1 parent 1dcc617 commit 18b7c71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Version (dev)
* Fix silent buttons trying to pack invalid `Buttons.snd0` soundscripts.
* Handle entities being added/removed during iteration of :py:meth:`VMF.search() <srctools.vmf.VMF.search>`.
* Share common strings in the engine database to save some space.
* Fix saving the `PHYSCOLLIDE` BSP lump.

-------------
Version 2.4.1
Expand Down
2 changes: 1 addition & 1 deletion src/srctools/bsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2667,7 +2667,7 @@ def _lmp_write_bmodels(self, bmodels: 'WeakKeyDictionary[Entity, BModel]') -> It
add_faces(model.faces), len(model.faces),
)
if model.phys_keyvalues is not None:
kvs = '\n'.join(model.phys_keyvalues.serialise()).encode('ascii') + b'\x00'
kvs = model.phys_keyvalues.serialise().encode('ascii') + b'\x00'
else:
kvs = b'\x00'
if not model._phys_solids:
Expand Down

0 comments on commit 18b7c71

Please sign in to comment.