0028407: Visualization - remove ::UpdateMode() from Graphic3d_StructureManager
[occt.git] / src / V3d / V3d_SpotLight.cxx
index aaeff1c..0fa5b8f 100644 (file)
@@ -271,7 +271,6 @@ void V3d_SpotLight::Display (const Handle(V3d_View)& theView,
   Standard_Real DXRef,DYRef,DZRef,DXini,DYini,DZini;
   Standard_Real R1,G1,B1;
   V3d_TypeOfRepresentation Pres;
-  V3d_TypeOfUpdate UpdSov;
 
 //  Creation of a structure slight of markable elements (position of the
 //  light, and the domain of lighting represented by a circle)
@@ -280,8 +279,6 @@ void V3d_SpotLight::Display (const Handle(V3d_View)& theView,
 
   Pres = theTPres;
   Handle(V3d_Viewer) TheViewer = theView->Viewer();
-  UpdSov = TheViewer->UpdateMode();
-  TheViewer->SetUpdateMode(V3d_WAIT);
   if (!myGraphicStructure.IsNull()) {
     myGraphicStructure->Disconnect(myGraphicStructure1);
     myGraphicStructure->Clear();
@@ -385,5 +382,4 @@ void V3d_SpotLight::Display (const Handle(V3d_View)& theView,
   myGraphicStructure->Connect(myGraphicStructure1,Graphic3d_TOC_DESCENDANT);
   myTypeOfRepresentation = Pres;
   myGraphicStructure->Display();
-  TheViewer->SetUpdateMode(UpdSov);
 }