From d787bd77ab73e3ddac4270de8988235b6c2efe1d Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 3 Oct 2011 07:07:07 +0000 Subject: [PATCH] 0021319: EDF 1616 ALL: synchronization of 3D viewers --- src/OCCViewer/OCCViewer_ViewPort3d.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/OCCViewer/OCCViewer_ViewPort3d.cxx b/src/OCCViewer/OCCViewer_ViewPort3d.cxx index ed188195a..946378e9e 100755 --- a/src/OCCViewer/OCCViewer_ViewPort3d.cxx +++ b/src/OCCViewer/OCCViewer_ViewPort3d.cxx @@ -635,7 +635,15 @@ bool OCCViewer_ViewPort3d::synchronize( OCCViewer_ViewPort* view ) { bool ok = false; OCCViewer_ViewPort3d* vp3d = qobject_cast( view ); - if ( vp3d ) ok = syncronize( vp3d ); + if ( vp3d ) { + bool blocked = blockSignals( false ); + Handle(V3d_View) aView3d = getView(); + Handle(V3d_View) aRefView3d = vp3d->getView(); + aView3d->SetViewMapping( aRefView3d->ViewMapping() ); + aView3d->SetViewOrientation( aRefView3d->ViewOrientation() ); + blockSignals( blocked ); + ok = true; + } return ok; } -- 2.39.2