mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
fixed texture not exported with single image scan
This commit is contained in:
@@ -2490,8 +2490,7 @@ void ExportCloudsDialog::saveTextureMeshes(
|
|||||||
QString fullPath;
|
QString fullPath;
|
||||||
if(singleTexture)
|
if(singleTexture)
|
||||||
{
|
{
|
||||||
mesh->tex_materials[i].tex_file = QFileInfo(path).baseName().toStdString();
|
fullPath = QFileInfo(path).absoluteDir().absolutePath()+QDir::separator()+QFileInfo(path).baseName()+_ui->comboBox_meshingTextureFormat->currentText();
|
||||||
fullPath = QFileInfo(path).absoluteDir().absolutePath()+QDir::separator()+QString(mesh->tex_materials[i].tex_file.c_str())+_ui->comboBox_meshingTextureFormat->currentText();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -2547,7 +2546,7 @@ void ExportCloudsDialog::saveTextureMeshes(
|
|||||||
// relative path
|
// relative path
|
||||||
if(singleTexture)
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user