From 856c08d9e98b2b733a7fcca7d2c779461fdd668b Mon Sep 17 00:00:00 2001 From: Guido Ranzuglia granzuglia Date: Thu, 20 Jan 2011 17:22:38 +0000 Subject: [PATCH] removed useless lines --- src/meshlab/mainwindow_RunTime.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/meshlab/mainwindow_RunTime.cpp b/src/meshlab/mainwindow_RunTime.cpp index d71e6a78b..ac3f24d70 100644 --- a/src/meshlab/mainwindow_RunTime.cpp +++ b/src/meshlab/mainwindow_RunTime.cpp @@ -1410,16 +1410,16 @@ bool MainWindow::openProject(QString fileName) QString fullPath = md->meshList[i]->fullName(); importMeshWithStandardParams(fullPath,GLA()->meshDoc->meshList[i]); } - for (int i=0; irasterList.size(); i++) - { - vcg::Shotf sh=md->rasterList[i]->shot; - if (i==0) - open(md->rasterList[i]->planeList[0]->fullName()); - else - open(md->rasterList[i]->planeList[0]->fullName()); - meshDoc()->rasterList[i]->shot=sh; - meshDoc()->rm()->setLabel(md->rm()->label()); - } + //for (int i=0; irasterList.size(); i++) + //{ + // vcg::Shotf sh=md->rasterList[i]->shot; + // /*if (i==0) + // open(md->rasterList[i]->planeList[0]->fullName()); + // else*/ + // importRaster(md->rasterList[i]->planeList[0]->fullName()); + // meshDoc()->rasterList[i]->shot=sh; + // meshDoc()->rm()->setLabel(md->rm()->label()); + //} } else return false; @@ -1493,7 +1493,8 @@ bool MainWindow::importRaster(const QString& fileImg) } GLA()->meshDoc->setBusy(true); - /*RasterModel *rm=*/ GLA()->meshDoc->addNewRaster(qPrintable(fileName)); + RasterModel *rm= GLA()->meshDoc->addNewRaster(); + rm->addPlane(new Plane(rm,fileName,QString(""))); meshDoc()->setBusy(false); // if(mdiarea->isVisible()) GLA()->mvc->showMaximized();