diff --git a/src/meshlab/glarea.cpp b/src/meshlab/glarea.cpp index 73bd928a2..74d6e6bae 100644 --- a/src/meshlab/glarea.cpp +++ b/src/meshlab/glarea.cpp @@ -342,9 +342,7 @@ void GLArea::paintEvent(QPaintEvent */*event*/) mp->glw.SetHintParamf(GLW::HNPPointSize,glas.pointSize); mp->glw.SetHintParami(GLW::HNPPointDistanceAttenuation,glas.pointDistanceAttenuation?1:0); mp->glw.SetHintParami(GLW::HNPPointSmooth,glas.pointSmooth?1:0); - //if(meshVisibilityMap[mp->id()]) mp->Render(rm.drawMode,rm.colorMode,rm.textureMode); - mp->Render(rm.drawMode,rm.colorMode,rm.textureMode); - qDebug("Meshlistsize %i id %i",this->md()->meshList.size(),this->id); + if(meshVisibilityMap[mp->id()]) mp->Render(rm.drawMode,rm.colorMode,rm.textureMode); } } if(iEdit) iEdit->Decorate(*mm(),this,&painter); diff --git a/src/meshlab/mainwindow_RunTime.cpp b/src/meshlab/mainwindow_RunTime.cpp index b913cbe31..b019f4073 100644 --- a/src/meshlab/mainwindow_RunTime.cpp +++ b/src/meshlab/mainwindow_RunTime.cpp @@ -1440,7 +1440,7 @@ bool MainWindow::openProject(QString fileName) meshDoc()->setBusy(false); if(this->GLA() == 0) return false; - this->GLA()->resetTrackBall(); + this->currentViewContainer()->resetAllTrackBall(); qb->reset(); saveRecentProjectList(fileName); return true;