Skip to content

Commit

Permalink
Sort attributes in vertex data IDs to make them stable
Browse files Browse the repository at this point in the history
  • Loading branch information
ppenenko committed Feb 15, 2025
1 parent f527ff4 commit c5ea2c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_impl/vertex_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, primitive):
self._optional_attributes.add(attr.sl_name)

def get_id(self) -> str:
return '_'.join(self._optional_attributes)
return '_'.join(sorted(self._optional_attributes))

def _generate_vs_in(self, sh):
with sh.vs_input('VsIn') as VsIn:
Expand Down

0 comments on commit c5ea2c8

Please sign in to comment.