Skip to content

Commit

Permalink
lmt fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PredatorCZ committed Apr 21, 2024
1 parent d2620cc commit a8b7854
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/mtf_lmt/bone_track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,11 @@ void ProcessClass(LMTTrackMidInterface &item, LMTConstructorProperties flags) {
}
}

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

Expand Down
2 changes: 1 addition & 1 deletion toolset/lmt_to_gltf/lmt_to_gltf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ void DoLmt(LMTGLTF &main, uni::MotionsConst motion, std::string name,
for (auto k : times) {
Vector4A16 value;
t->GetValue(value, k);
//value *= SCALE;
value *= SCALE;
aNode.positions.emplace_back(value);
}
break;
Expand Down

0 comments on commit a8b7854

Please sign in to comment.