Skip to content

Commit

Permalink
Fix OpenGL visualizer for polymers (#4593)
Browse files Browse the repository at this point in the history
Description of changes:
- fix a regression introduced in 4.3-dev by 283e0c8 in #4558 that crashes the visualizer when drawing bonds between particles
  • Loading branch information
kodiakhq[bot] authored Oct 14, 2022
2 parents 99b4b4e + 3b3aa97 commit 3a8d4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/espressomd/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ def _update_bonds(self, particle_data):
for bond in particle.bonds:
# input data:
# bond[0]: bond type, bond[1:] bond partners
bond_type = bond[0].type_number()
bond_type = bond[0]._type_number
if len(bond) == 4:
self.bonds.append([particle.id, bond[1], bond_type])
self.bonds.append([particle.id, bond[2], bond_type])
Expand Down

0 comments on commit 3a8d4e5

Please sign in to comment.