From 194c19b23ee99f41cd3e39a9f5b3441abfa7b967 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Wed, 16 Feb 2011 15:14:47 +0000 Subject: [PATCH] Again and Again and Again still cleaning up bugs in the split window managements --- src/meshlab/glarea.cpp | 4 +--- src/meshlab/mainwindow_RunTime.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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;