1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-16 10:54:53 +03:00

0023474: Changing material/color/transparency of a shaded AIS_Shape requires 'Redisplay'

Getting the current group instead of creating new one. Otherwise the necessary aspect information is lost.
This commit is contained in:
Pawel 2012-10-16 12:42:13 +02:00 committed by bugmaster
parent e5bd0d984c
commit 7893b2faf8

View File

@ -328,7 +328,7 @@ namespace
Handle(Graphic3d_AspectLine3d) aBoundaryAspect =
theDrawer->FaceBoundaryAspect ()->Aspect ();
Handle(Graphic3d_Group) aPrsGrp = Prs3d_Root::NewGroup (thePresentation);
Handle(Graphic3d_Group) & aPrsGrp = Prs3d_Root::CurrentGroup (thePresentation);
aPrsGrp->SetGroupPrimitivesAspect (aBoundaryAspect);
aPrsGrp->AddPrimitiveArray (aSegments);
}