Skip to content

Commit 53ff5b5

Browse files
committed
fixed texture not exported with single image scan
1 parent a1ceff8 commit 53ff5b5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

guilib/src/ExportCloudsDialog.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2490,8 +2490,7 @@ void ExportCloudsDialog::saveTextureMeshes(
24902490
QString fullPath;
24912491
if(singleTexture)
24922492
{
2493-
mesh->tex_materials[i].tex_file = QFileInfo(path).baseName().toStdString();
2494-
fullPath = QFileInfo(path).absoluteDir().absolutePath()+QDir::separator()+QString(mesh->tex_materials[i].tex_file.c_str())+_ui->comboBox_meshingTextureFormat->currentText();
2493+
fullPath = QFileInfo(path).absoluteDir().absolutePath()+QDir::separator()+QFileInfo(path).baseName()+_ui->comboBox_meshingTextureFormat->currentText();
24952494
}
24962495
else
24972496
{
@@ -2547,7 +2546,7 @@ void ExportCloudsDialog::saveTextureMeshes(
25472546
// relative path
25482547
if(singleTexture)
25492548
{
2550-
mesh->tex_materials[i].tex_file=(QString(mesh->tex_materials[i].tex_file.c_str())+_ui->comboBox_meshingTextureFormat->currentText()).toStdString();
2549+
mesh->tex_materials[i].tex_file=QFileInfo(path).baseName().toStdString()+_ui->comboBox_meshingTextureFormat->currentText().toStdString();
25512550
}
25522551
else
25532552
{

0 commit comments

Comments
 (0)