From 907e39d6cbbeb074ee69a1f152a43d1273fcc966 Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Fri, 16 Apr 2021 14:42:29 +0200 Subject: [PATCH] remove unuseful isreloaded parameter --- src/meshlab/mainwindow.h | 2 +- src/meshlab/mainwindow_RunTime.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/meshlab/mainwindow.h b/src/meshlab/mainwindow.h index a12cdf1e9..acd380353 100644 --- a/src/meshlab/mainwindow.h +++ b/src/meshlab/mainwindow.h @@ -143,7 +143,7 @@ private: private slots: void documentUpdateRequested(); - bool importMesh(QString fileName=QString(), bool isareload = false); + bool importMesh(QString fileName=QString()); void endEdit(); void updateProgressBar(const int pos,const QString& text); void updateTexture(int meshid); diff --git a/src/meshlab/mainwindow_RunTime.cpp b/src/meshlab/mainwindow_RunTime.cpp index 2c06b53f9..c6d0939c7 100644 --- a/src/meshlab/mainwindow_RunTime.cpp +++ b/src/meshlab/mainwindow_RunTime.cpp @@ -2350,7 +2350,7 @@ bool MainWindow::importMeshWithLayerManagement(QString fileName) //showLayerDlg(false); } globrendtoolbar->setEnabled(false); - bool res = importMesh(fileName,false); + bool res = importMesh(fileName); globrendtoolbar->setEnabled(true); if (layerDialog != NULL) showLayerDlg(layervisible || meshDoc()->meshList.size()); @@ -2359,7 +2359,7 @@ bool MainWindow::importMeshWithLayerManagement(QString fileName) } // Opening files in a transparent form (IO plugins contribution is hidden to user) -bool MainWindow::importMesh(QString fileName,bool isareload) +bool MainWindow::importMesh(QString fileName) { if (!GLA()) { @@ -2422,7 +2422,7 @@ bool MainWindow::importMesh(QString fileName,bool isareload) t.start(); Matrix44m mtr; mtr.SetIdentity(); - bool open = loadMesh(fileName,pCurrentIOPlugin,mm,mask,&prePar,mtr,isareload); + bool open = loadMesh(fileName,pCurrentIOPlugin,mm,mask,&prePar,mtr,false); if(open) { GLA()->Logf(0, "Opened mesh %s in %i msec", qUtf8Printable(fileName), t.elapsed());