Skip to content
Snippets Groups Projects
Commit 2ec3e167 authored by Campbell Barton's avatar Campbell Barton
Browse files

Cleanup: formatting

parent 680a49c6
No related branches found
No related tags found
No related merge requests found
......@@ -370,7 +370,8 @@ class BlendFileBlock:
assert(type(dna_type_id) is bytes)
self.refine_type_from_index(self.file.sdna_index_from_id[dna_type_id])
def get_file_offset(self, path,
def get_file_offset(
self, path,
default=...,
sdna_index_refine=None,
base_index=0,
......@@ -467,6 +468,7 @@ class BlendFileBlock:
# TODO This implementation is most likely far from optimal... and CRC32 is not renown as the best hashing
# algo either. But for now does the job!
import zlib
def _is_pointer(self, k):
return self.file.structs[self.sdna_index].field_from_path(
self.file.header, self.file.handle, k).dna_name.is_pointer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment