| 1602 | } |
| 1603 | |
| 1604 | void glTF2Exporter::ExportMetadata() { |
| 1605 | AssetMetadata &asset = mAsset->asset; |
| 1606 | asset.version = "2.0"; |
| 1607 | |
| 1608 | char buffer[256]; |
| 1609 | ai_snprintf(buffer, 256, "Open Asset Import Library (assimp v%d.%d.%x)", |
| 1610 | aiGetVersionMajor(), aiGetVersionMinor(), aiGetVersionRevision()); |
| 1611 | |
| 1612 | asset.generator = buffer; |
| 1613 | |
| 1614 | // Copyright |
| 1615 | aiString copyright_str; |
| 1616 | if (mScene->mMetaData != nullptr && mScene->mMetaData->Get(AI_METADATA_SOURCE_COPYRIGHT, copyright_str)) { |
| 1617 | asset.copyright = copyright_str.C_Str(); |
| 1618 | } |
| 1619 | } |
| 1620 | |
| 1621 | inline Ref<Accessor> GetSamplerInputRef(Asset &asset, std::string &animId, Ref<Buffer> &buffer, std::vector<ai_real> ×) { |
| 1622 | return ExportData(asset, animId, buffer, (unsigned int)times.size(), ×[0], AttribType::SCALAR, AttribType::SCALAR, ComponentType_FLOAT); |
nothing calls this directly
no test coverage detected