3mf: use correct material assignment in case of multi-materials.

This commit is contained in:
Kim Kulling
2018-03-09 11:40:45 +01:00
parent 54ca88b466
commit 69742670dd
7 changed files with 110 additions and 61 deletions

View File

@@ -126,7 +126,6 @@ bool D3MFExporter::exportArchive( const char *file ) {
return ok;
}
bool D3MFExporter::exportContentTypes() {
mContentOutput.clear();
@@ -177,6 +176,8 @@ bool D3MFExporter::export3DModel() {
mModelOutput << "<" << XmlTag::resources << ">";
mModelOutput << std::endl;
writeBaseMaterials();
writeObjects();
@@ -203,6 +204,10 @@ void D3MFExporter::writeHeader() {
mModelOutput << std::endl;
}
void D3MFExporter::writeBaseMaterials() {
}
void D3MFExporter::writeObjects() {
if ( nullptr == mScene->mRootNode ) {
return;