]> OCCT Git - occt-copy.git/commitdiff
0030268: Inspectors - improvements in VInspector plugin
authornds <natalia.ermolaeva@opencascade.com>
Tue, 7 Jul 2020 10:48:21 +0000 (13:48 +0300)
committernds <natalia.ermolaeva@opencascade.com>
Tue, 7 Jul 2020 10:48:21 +0000 (13:48 +0300)
- lights for V3d viewer.
- should not possible using it as it breaks highlight/selection of this presentation in the viewer.

tools/View/View_Displayer.cxx

index a8793ec5367d7753ec0211c865d7e9c359f6e1af..b80fbdfba52ec9e9877af912a44c6bb01da4d531 100644 (file)
@@ -115,7 +115,7 @@ void View_Displayer::DisplayPresentation (const Handle(Standard_Transient)& theP
     aDisplayed.Append (aPresentation);
   }
 
-  if (!myIsKeepPresentations || myFitAllActive)
+  if (/*!myIsKeepPresentations ||*/ myFitAllActive)
     fitAllView();
 
   myDisplayed.Bind (theType, aDisplayed);
@@ -290,7 +290,7 @@ void View_Displayer::UpdatePreview (const View_DisplayActionType theType,
                                     const NCollection_List<Handle(Standard_Transient)>& thePresentations)
 {
   myDisplayPreview->UpdatePreview (theType, thePresentations);
-  if (!myIsKeepPresentations || myFitAllActive)
+  if (/*!myIsKeepPresentations ||*/ myFitAllActive)
     fitAllView();
 }