Cleanup: make the blend file header private

This was split out as part of a refactor but isn't intended to be a
new public module for other scripts to use.

Ref !141088
This commit is contained in:
Campbell Barton
2025-06-27 23:41:07 +10:00
parent 257486630e
commit 0d3826b354
4 changed files with 19 additions and 19 deletions

View File

@@ -22,7 +22,7 @@ import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "scripts", "modules"))
import blendfile_header
import _blendfile_header
import gzip
import logging
import struct
@@ -57,7 +57,7 @@ class BlendFile:
"filepath_orig",
# BlendFileHeader
"header",
# blendfile_header.BlockHeaderStruct
# _blendfile_header.BlockHeaderStruct
"block_header_struct",
# BlendFileBlock
"blocks",
@@ -245,7 +245,7 @@ class BlendFile:
return structs, sdna_index_from_id
class BlendFileBlock(blendfile_header.BlockHeader):
class BlendFileBlock(_blendfile_header.BlockHeader):
"""
Instance of a struct.
"""
@@ -703,7 +703,7 @@ class BlendFileBlockRaw:
# Read Magic
class BlendFileHeader(blendfile_header.BlendFileHeader):
class BlendFileHeader(_blendfile_header.BlendFileHeader):
endian_index: int
endian_str: bytes