From: asl Date: Tue, 3 Dec 2013 07:44:18 +0000 (+0000) Subject: avoid viewer update on each erase of shape X-Git-Tag: BR_hydro_v_0_4~90 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0f542b1bd90ff6043468a3a2fbac3b45f41c8503;p=modules%2Fhydro.git avoid viewer update on each erase of shape --- diff --git a/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx b/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx index b9788afd..b2316376 100644 --- a/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx +++ b/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx @@ -89,6 +89,7 @@ void HYDROGUI_OCCDisplayer::Erase( const HYDROData_SequenceOfObjects& theObjs, module()->removeObjectShape( (size_t)aViewer, anObj ); } + aViewer->update(); } HYDROGUI_Shape* HYDROGUI_OCCDisplayer::createShape( const int theViewerId, diff --git a/src/HYDROGUI/HYDROGUI_Shape.cxx b/src/HYDROGUI/HYDROGUI_Shape.cxx index 4ddd3b2d..4ba2ed2d 100644 --- a/src/HYDROGUI/HYDROGUI_Shape.cxx +++ b/src/HYDROGUI/HYDROGUI_Shape.cxx @@ -83,7 +83,7 @@ HYDROGUI_Shape::HYDROGUI_Shape( const Handle(AIS_InteractiveContext)& theContext HYDROGUI_Shape::~HYDROGUI_Shape() { - erase(); + erase( false ); if ( !myShape.IsNull() ) myShape.Nullify();