]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0021319: EDF 1616 ALL: synchronization of 3D viewers
authorvsr <vsr@opencascade.com>
Mon, 3 Oct 2011 07:07:07 +0000 (07:07 +0000)
committervsr <vsr@opencascade.com>
Mon, 3 Oct 2011 07:07:07 +0000 (07:07 +0000)
src/OCCViewer/OCCViewer_ViewPort3d.cxx

index ed188195a583d3c358afebd8d01bc8ce4e63b49a..946378e9efbc515bb0aa857b4685f911a5ba06c1 100755 (executable)
@@ -635,7 +635,15 @@ bool OCCViewer_ViewPort3d::synchronize( OCCViewer_ViewPort* view )
 {
   bool ok = false;
   OCCViewer_ViewPort3d* vp3d = qobject_cast<OCCViewer_ViewPort3d*>( 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;
 }