From 7893b2faf8bedf91b5925188109a06b4603881b7 Mon Sep 17 00:00:00 2001 From: Pawel Date: Tue, 16 Oct 2012 12:42:13 +0200 Subject: [PATCH] 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. --- src/StdPrs/StdPrs_ShadedShape.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }