From c883602b63edfbc813bec4ffecfb05abe73c3d7a Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 5 Oct 2011 12:59:36 +0000 Subject: [PATCH] 0021319: EDF 1616 ALL: synchronization of 3D viewers Update clipping box in a target view at the synchronization --- src/OCCViewer/OCCViewer_ViewPort3d.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/OCCViewer/OCCViewer_ViewPort3d.cxx b/src/OCCViewer/OCCViewer_ViewPort3d.cxx index 79d470ae5..88fd810a6 100755 --- a/src/OCCViewer/OCCViewer_ViewPort3d.cxx +++ b/src/OCCViewer/OCCViewer_ViewPort3d.cxx @@ -641,8 +641,12 @@ bool OCCViewer_ViewPort3d::synchronize( OCCViewer_ViewPort* view ) bool blocked = blockSignals( false ); Handle(V3d_View) aView3d = getView(); Handle(V3d_View) aRefView3d = vp3d->getView(); + aView3d->SetImmediateUpdate( Standard_False ); aView3d->SetViewMapping( aRefView3d->ViewMapping() ); aView3d->SetViewOrientation( aRefView3d->ViewOrientation() ); + aView3d->ZFitAll(); + aView3d->SetImmediateUpdate( Standard_True ); + aView3d->Update(); blockSignals( blocked ); ok = true; } -- 2.39.2