]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PartSet/PartSet_CenterPrs.cpp
Salome HOME
Copyright update 2022
[modules/shaper.git] / src / PartSet / PartSet_CenterPrs.cpp
index 1d791dcf295f875e191e167efbe26f60eac84626..1508ec36b4e8b62355965581851dbf428f2f65dc 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2017-2021  CEA/DEN, EDF R&D
+// Copyright (C) 2017-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -27,7 +27,6 @@
 #include <Geom_CartesianPoint.hxx>
 #include <Prs3d_PointAspect.hxx>
 #include <Graphic3d_AspectMarker3d.hxx>
-#include <Prs3d_Root.hxx>
 #include <Graphic3d_ArrayOfPoints.hxx>
 #include <AIS_InteractiveContext.hxx>
 
@@ -59,7 +58,7 @@ void PartSet_CenterPrs::drawPoint(const Handle(Prs3d_Presentation)& thePrs,
   PtA->SetColor(theColor);
 
   Handle(Geom_Point) aPnt = Component();
-  Handle(Graphic3d_Group) TheGroup = Prs3d_Root::CurrentGroup(thePrs);
+  Handle(Graphic3d_Group) TheGroup = thePrs->CurrentGroup();
   TheGroup->SetPrimitivesAspect(PtA);
 
   Handle(Graphic3d_ArrayOfPoints) aPoint = new Graphic3d_ArrayOfPoints (1);