Salome HOME
Issue #1971: Disable "in screen" control for this objects
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 12 Jan 2017 08:08:18 +0000 (11:08 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 12 Jan 2017 08:08:18 +0000 (11:08 +0300)
src/SketcherPrs/SketcherPrs_SymbolPrs.cpp

index 8a3a0fa7a415209dc719e659faedd0e064a6181f..729d13be56d0c8b9b3d5014566e222725d5a92c9 100644 (file)
@@ -254,7 +254,7 @@ void SketcherPrs_SymbolPrs::Compute(
   aBnd.Clear();
   for (int i = 1; i <= myPntArray->ItemNumber(); i++) {
     aVert = myPntArray->Vertice(i);
-    aBnd.Add (Graphic3d_Vec4((float)aVert.X(), (float)aVert.Y(), (float)aVert.Z(), 1.0f));
+    aBnd.Add(Graphic3d_Vec4((float)aVert.X(), (float)aVert.Y(), (float)aVert.Z(), 1.0f));
   }
 
   // Pint the group with custom procedure (see Render)
@@ -263,7 +263,7 @@ void SketcherPrs_SymbolPrs::Compute(
   aGroup->AddElement(aElem);
 
   // Disable frustum culling for this object by marking it as mutable
-  //aGroup->Structure()->SetMutable(true);
+  aGroup->Structure()->SetMutable(true);
 
   if (!aReadyToDisplay)
     SketcherPrs_Tools::sendEmptyPresentationError(myConstraint,