mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 00:07:24 +00:00
When splitting a view, remember the orientation
This commit is contained in:
parent
872f817b93
commit
119a1bd27d
@ -438,6 +438,14 @@ void MainWindow::setSplit(QAction *qa)
|
||||
if(mvc)
|
||||
{
|
||||
GLArea *glwClone=new GLArea(this, mvc, ¤tGlobalParams);
|
||||
|
||||
// Start the new view with the same orientation as the existing one
|
||||
GLArea* glArea = mvc->currentView();
|
||||
if(glArea) {
|
||||
QPair<Shotm,float> shotAndScale = glArea->shotFromTrackball();
|
||||
glwClone->loadShot(shotAndScale);
|
||||
}
|
||||
|
||||
//connect(glwClone, SIGNAL(insertRenderingDataForNewlyGeneratedMesh(int)), this, SLOT(addRenderingDataIfNewlyGeneratedMesh(int)));
|
||||
if(qa->text() == tr("&Horizontally"))
|
||||
mvc->addView(glwClone,Qt::Vertical);
|
||||
@ -454,7 +462,6 @@ void MainWindow::setSplit(QAction *qa)
|
||||
|
||||
updateMenus();
|
||||
|
||||
glwClone->resetTrackBall();
|
||||
glwClone->update();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user