File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments