Fill material properties upon import + if SKL2 missing, assume all BONE models are in it + SkeletonProperties only relevant for imported meshes + chunked_file_reader no longer assumes 4-byte alignment
This commit is contained in:
@@ -45,6 +45,8 @@ def decompress_curves(input_file) -> Dict[int, Dict[int, List[ Dict[int,float]]]
|
||||
anim_crcs = []
|
||||
anim_metadata = {}
|
||||
|
||||
head.skip_until("MINA")
|
||||
|
||||
# Read metadata (crc, num frames, num bones) for each anim
|
||||
with head.read_child() as mina:
|
||||
|
||||
@@ -62,6 +64,9 @@ def decompress_curves(input_file) -> Dict[int, Dict[int, List[ Dict[int,float]]]
|
||||
"transBitFlags" : transBitFlags,
|
||||
}
|
||||
|
||||
|
||||
head.skip_until("TNJA")
|
||||
|
||||
# Read TADA offsets and quantization parameters for each rot + loc component, for each bone, for each anim
|
||||
with head.read_child() as tnja:
|
||||
|
||||
@@ -85,6 +90,8 @@ def decompress_curves(input_file) -> Dict[int, Dict[int, List[ Dict[int,float]]]
|
||||
anim_metadata[anim_crc]["bone_params"] = bone_params
|
||||
anim_metadata[anim_crc]["bone_list"] = bone_list
|
||||
|
||||
head.skip_until("TADA")
|
||||
|
||||
# Decompress/dequantize frame data into discrete per-component curves
|
||||
with head.read_child() as tada:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user