Skip to content

Commit

Permalink
fix be bone bitfield swap for lmt v2
Browse files Browse the repository at this point in the history
  • Loading branch information
PredatorCZ committed Dec 9, 2023
1 parent b1b734b commit e798352
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/mtf_lmt/bone_track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,8 @@ static const TrackTypesShared buffRemapRegistry[][16] = {
struct LMTTrackMidInterface : LMTTrackInterface {
clgen::BoneTrack::Interface interface;

LMTTrackMidInterface(clgen::LayoutLookup rules, char *data) : interface {
data, rules
} {
LMTTrackMidInterface(clgen::LayoutLookup rules, char *data)
: interface{data, rules} {
useRefFrame = interface.m(clgen::BoneTrack::referenceData) >= 0;
}

Expand Down Expand Up @@ -273,6 +272,10 @@ void ProcessClass(LMTTrackMidInterface &item, LMTConstructorProperties flags) {
FByteswapper(*extr);
}
}

FByteswapper(*reinterpret_cast<uint32 *>(
item.interface.data +
item.interface.m(clgen::BoneTrack::compression)));
}
}

Expand Down

0 comments on commit e798352

Please sign in to comment.