Write raw anim asset id into anim clips

This commit is contained in:
Xiao Qi 2023-03-09 13:46:39 +08:00
parent 5669babc0f
commit 3d6bfaa119
2 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@ namespace SHADE
std::string name;
uint32_t firstIndex;
uint32_t lastIndex;
AssetID animRawDataAssetId; // Not serialised, only populated during runtime from parent asset
};
struct SH_API SHAnimClipContainerAsset final : SHAssetData

View File

@ -119,6 +119,8 @@ namespace SHADE
reinterpret_cast<char*>(&clip.firstIndex),
sizeof(uint32_t) * 2
);
clip.animRawDataAssetId = data->animRawDataAssetId;
}
result = data;