From: Pawel Date: Tue, 16 Oct 2012 10:42:13 +0000 (+0200) Subject: 0023474: Changing material/color/transparency of a shaded AIS_Shape requires 'Redisplay' X-Git-Tag: V6_7_0~93 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=7893b2faf8bedf91b5925188109a06b4603881b7;p=occt-copy.git 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. --- diff --git a/src/StdPrs/StdPrs_ShadedShape.cxx b/src/StdPrs/StdPrs_ShadedShape.cxx index 060e6df511..11b430fd3f 100644 --- a/src/StdPrs/StdPrs_ShadedShape.cxx +++ b/src/StdPrs/StdPrs_ShadedShape.cxx @@ -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); }