From 1b934ff46196b1943cb7fcea428bbd25860ff142 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 2 Jul 2009 11:44:56 +0000 Subject: [PATCH] Bug 0020409: EDF GUI: Rotation point. --- src/OCCViewer/OCCViewer_ViewWindow.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/OCCViewer/OCCViewer_ViewWindow.cxx b/src/OCCViewer/OCCViewer_ViewWindow.cxx index 242b3eeb0..813068043 100755 --- a/src/OCCViewer/OCCViewer_ViewWindow.cxx +++ b/src/OCCViewer/OCCViewer_ViewWindow.cxx @@ -20,7 +20,7 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // OCCViewer_ViewWindow.cxx: implementation of the OCCViewer_ViewWindow class. -// + #include "OCCViewer_ViewWindow.h" #include "OCCViewer_ViewModel.h" #include "OCCViewer_ViewPort3d.h" @@ -1174,7 +1174,8 @@ void OCCViewer_ViewWindow::onSetRotationPoint( bool on ) if ( !mySetRotationPointDlg->isShown() ) { - if ( mySetRotationPointDlg->IsFirstShown() ) + //if ( mySetRotationPointDlg->IsFirstShown() ) + if (myCurrPointType == GRAVITY) { Standard_Real Xcenter, Ycenter, Zcenter; if ( computeGravityCenter( Xcenter, Ycenter, Zcenter ) ) -- 2.39.2