Skip to content

Commit

Permalink
fixed texture not exported with single image scan
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Feb 1, 2017
1 parent a1ceff8 commit 53ff5b5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions guilib/src/ExportCloudsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 53ff5b5

Please sign in to comment.