Standard_Real aCurrentWidth = aLineAspect->Aspect()->Width();
bool isChangedLineType = aType != aPrevLineType;
if (isChangedLineType) {
- aLineAspect->SetTypeOfLine(aType);
+ Handle(Prs3d_LineAspect) aAspect = new Prs3d_LineAspect(aCurrentColor, aType, aCurrentWidth);
+ aDrawer->SetLineAspect(aAspect);
}
}
Handle( Prs3d_Presentation ) aHilightPrs = GetHilightPresentation( thePM );
aHilightPrs->Clear();
drawLines(aHilightPrs, theStyle->Color());
- aHilightPrs->SetZLayer (Graphic3d_ZLayerId_Topmost);
+ aHilightPrs->SetZLayer(Graphic3d_ZLayerId_Topmost);
if (thePM->IsImmediateModeOn())
thePM->AddToImmediateList(aHilightPrs);