Saved and loaded bone offsets
This commit is contained in:
parent
62f104a535
commit
80fb8f7c73
Binary file not shown.
|
@ -27,6 +27,7 @@ namespace SHADE
|
||||||
{
|
{
|
||||||
std::string name;
|
std::string name;
|
||||||
SHMatrix transform;
|
SHMatrix transform;
|
||||||
|
SHMatrix offset;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct SHRigNodeAsset
|
struct SHRigNodeAsset
|
||||||
|
|
|
@ -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)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue