Skip to content

Commit

Permalink
write_precomputed: fix vertex properties in info file
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Oct 24, 2023
1 parent 0b5f579 commit 8ec6be7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions navis/io/precomputed_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,9 @@ def write_any(self, x, filepath, write_info=True, **kwargs):
if write_info:
add_props = {}
if kwargs.get('radius', False):
add_props['vertex_attributes'] = {'id': 'radius',
add_props['vertex_attributes'] = [{'id': 'radius',
'data_type': 'float32',
'num_components': 1}
'num_components': 1}]

if str(self.path).endswith('.zip'):
with ZipFile(self.path, mode='a') as zf:
Expand Down

0 comments on commit 8ec6be7

Please sign in to comment.