Implemented Animation Clip asset and animation controller #410
|
@ -25,6 +25,7 @@ namespace SHADE
|
||||||
std::string name;
|
std::string name;
|
||||||
uint32_t firstIndex;
|
uint32_t firstIndex;
|
||||||
uint32_t lastIndex;
|
uint32_t lastIndex;
|
||||||
|
AssetID animRawDataAssetId; // Not serialised, only populated during runtime from parent asset
|
||||||
};
|
};
|
||||||
|
|
||||||
struct SH_API SHAnimClipContainerAsset final : SHAssetData
|
struct SH_API SHAnimClipContainerAsset final : SHAssetData
|
||||||
|
|
|
@ -119,6 +119,8 @@ namespace SHADE
|
||||||
reinterpret_cast<char*>(&clip.firstIndex),
|
reinterpret_cast<char*>(&clip.firstIndex),
|
||||||
sizeof(uint32_t) * 2
|
sizeof(uint32_t) * 2
|
||||||
);
|
);
|
||||||
|
|
||||||
|
clip.animRawDataAssetId = data->animRawDataAssetId;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = data;
|
result = data;
|
||||||
|
|
Loading…
Reference in New Issue