Browse Source

Don't create new DSpans for every mesh...

Yeah, bad things happen when you forget to implement __eq__
pull/6/head
Adam Johnson 11 years ago
parent
commit
7b6ac6f582
  1. 3
      korman/exporter/mesh.py

3
korman/exporter/mesh.py

@ -42,6 +42,9 @@ class _RenderLevel:
# the render pass, just like it says...
self.level += pass_index
def __eq__(self, other):
return self.level == other.level
def __hash__(self):
return hash(self.level)

Loading…
Cancel
Save