From: vsr Date: Mon, 3 Oct 2011 07:07:07 +0000 (+0000) Subject: 0021319: EDF 1616 ALL: synchronization of 3D viewers X-Git-Tag: V6_4_0a1~54 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d787bd77ab73e3ddac4270de8988235b6c2efe1d;p=modules%2Fgui.git 0021319: EDF 1616 ALL: synchronization of 3D viewers --- 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; }