| 893 | } |
| 894 | |
| 895 | void glTFExporter::ExportMetadata() |
| 896 | { |
| 897 | glTF::AssetMetadata& asset = mAsset->asset; |
| 898 | asset.version = "1.0"; |
| 899 | |
| 900 | char buffer[256]; |
| 901 | ai_snprintf(buffer, 256, "Open Asset Import Library (assimp v%d.%d.%x)", |
| 902 | aiGetVersionMajor(), aiGetVersionMinor(), aiGetVersionRevision()); |
| 903 | |
| 904 | asset.generator = buffer; |
| 905 | |
| 906 | // Copyright |
| 907 | aiString copyright_str; |
| 908 | if (mScene->mMetaData != nullptr && mScene->mMetaData->Get(AI_METADATA_SOURCE_COPYRIGHT, copyright_str)) { |
| 909 | asset.copyright = copyright_str.C_Str(); |
| 910 | } |
| 911 | } |
| 912 | |
| 913 | inline void ExtractAnimationData(Asset& mAsset, std::string& animId, Ref<Animation>& animRef, Ref<Buffer>& buffer, const aiNodeAnim* nodeChannel, float ticksPerSecond) |
| 914 | { |
nothing calls this directly
no test coverage detected