Saved and loaded bone offsets

This commit is contained in:
Xiao Qi 2023-01-22 17:00:55 +08:00
parent 62f104a535
commit 80fb8f7c73
3 changed files with 6 additions and 0 deletions

Binary file not shown.

View File

@ -27,6 +27,7 @@ namespace SHADE
{ {
std::string name; std::string name;
SHMatrix transform; SHMatrix transform;
SHMatrix offset;
}; };
struct SHRigNodeAsset struct SHRigNodeAsset

View File

@ -151,6 +151,11 @@ namespace SHADE
reinterpret_cast<char*>(&data[i].transform), reinterpret_cast<char*>(&data[i].transform),
sizeof(SHMatrix) sizeof(SHMatrix)
); );
file.read(
reinterpret_cast<char*>(&data[i].offset),
sizeof(SHMatrix)
);
} }
} }