From 53ff5b56e636c3c7639ab261eb946f5c9af44d78 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Wed, 1 Feb 2017 12:53:05 -0500 Subject: [PATCH] fixed texture not exported with single image scan --- guilib/src/ExportCloudsDialog.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/guilib/src/ExportCloudsDialog.cpp b/guilib/src/ExportCloudsDialog.cpp index e8913987..498d5813 100644 --- a/guilib/src/ExportCloudsDialog.cpp +++ b/guilib/src/ExportCloudsDialog.cpp @@ -2490,8 +2490,7 @@ void ExportCloudsDialog::saveTextureMeshes( QString fullPath; if(singleTexture) { - mesh->tex_materials[i].tex_file = QFileInfo(path).baseName().toStdString(); - fullPath = QFileInfo(path).absoluteDir().absolutePath()+QDir::separator()+QString(mesh->tex_materials[i].tex_file.c_str())+_ui->comboBox_meshingTextureFormat->currentText(); + fullPath = QFileInfo(path).absoluteDir().absolutePath()+QDir::separator()+QFileInfo(path).baseName()+_ui->comboBox_meshingTextureFormat->currentText(); } else { @@ -2547,7 +2546,7 @@ void ExportCloudsDialog::saveTextureMeshes( // relative path if(singleTexture) { - mesh->tex_materials[i].tex_file=(QString(mesh->tex_materials[i].tex_file.c_str())+_ui->comboBox_meshingTextureFormat->currentText()).toStdString(); + mesh->tex_materials[i].tex_file=QFileInfo(path).baseName().toStdString()+_ui->comboBox_meshingTextureFormat->currentText().toStdString(); } else {