We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a2ab9f commit 4b2c15eCopy full SHA for 4b2c15e
src/flitter/render/window/models.pyx
@@ -146,6 +146,7 @@ cdef class Model:
146
for cache in self.buffer_caches:
147
if self.name in cache:
148
del cache[self.name]
149
+ self.buffer_caches = None
150
151
cpdef object get_trimesh(self):
152
self.cache_timestamp = perf_counter()
tests/test_models.py
@@ -509,3 +509,5 @@ def test_box_get_buffers(self):
509
index_data = glctx.buffer.mock_calls[1].args[0]
510
self.assertEqual(index_data.dtype.name, 'int32')
511
self.assertEqual(index_data.shape, (12, 3))
512
+ model.invalidate()
513
+ self.assertNotIn(model.name, objects)
0 commit comments