160 Tests subfile references for such qualities that are dependent on the |
160 Tests subfile references for such qualities that are dependent on the |
161 actual contents of the subfiles. Checks whether moved-to files are used. |
161 actual contents of the subfiles. Checks whether moved-to files are used. |
162 Checks whether flat subfiles are scaled in the flat direction. |
162 Checks whether flat subfiles are scaled in the flat direction. |
163 ''' |
163 ''' |
164 import filecache |
164 import filecache |
165 cache = filecache.SubfileCache(model.ldraw_directories) |
165 cache = filecache.SubfileCache(context = model.context) |
166 if model.header.valid: |
166 if model.header.valid: |
167 cache.reference_stack.append(model.header.name) |
167 cache.reference_stack.append(model.header.name) |
168 failed_subfiles = set() |
168 failed_subfiles = set() |
169 for subfile_reference, has_invertnext in subfile_references_with_invertnext(model): |
169 for subfile_reference, has_invertnext in subfile_references_with_invertnext(model): |
170 path = subfile_reference.subfile_path.lower() |
170 path = subfile_reference.subfile_path.lower() |