Export extensions
This commit is contained in:
@@ -107,10 +107,6 @@ glTF2Exporter::glTF2Exporter(const char* filename, IOSystem* pIOSystem, const ai
|
||||
|
||||
ExportMetadata();
|
||||
|
||||
if (mScene->mRootNode) {
|
||||
ExportExtensions(mScene->mRootNode);
|
||||
}
|
||||
|
||||
ExportMaterials();
|
||||
|
||||
if (mScene->mRootNode) {
|
||||
@@ -789,20 +785,6 @@ void glTF2Exporter::ExportMetadata()
|
||||
asset.generator = buffer;
|
||||
}
|
||||
|
||||
void glTF2Exporter::ExportExtensions(const aiNode* n)
|
||||
{
|
||||
aiMetadata* mMetaData = n->mMetaData;
|
||||
|
||||
if (mMetaData != nullptr) {
|
||||
bool pbrSpecularGlossiness;
|
||||
|
||||
if (mMetaData->Get("extensionsUsed.pbrSpecularGlossiness", pbrSpecularGlossiness)) {
|
||||
mAsset->extensionsUsed.KHR_materials_pbrSpecularGlossiness = pbrSpecularGlossiness;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
inline void ExtractAnimationData(Asset& mAsset, std::string& animId, Ref<Animation>& animRef, Ref<Buffer>& buffer, const aiNodeAnim* nodeChannel, float ticksPerSecond)
|
||||
{
|
||||
// Loop over the data and check to see if it exactly matches an existing buffer.
|
||||
|
||||
Reference in New Issue
Block a user