Speed up rewriting paths by reusing cached DNA structs & blocks

This commit is contained in:
Sybren A. Stüvel
2018-03-08 10:59:45 +01:00
parent 595f8cb0a6
commit ccdccd69cf
3 changed files with 116 additions and 72 deletions
+4 -2
View File
@@ -2,6 +2,8 @@ import logging
import pathlib
import unittest
from blender_asset_tracer import blendfile
class AbstractBlendFileTest(unittest.TestCase):
@classmethod
@@ -15,5 +17,5 @@ class AbstractBlendFileTest(unittest.TestCase):
self.bf = None
def tearDown(self):
if self.bf:
self.bf.close()
self.bf = None
blendfile.close_all_cached()