1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

Compilation correction for patch: "#265 Possibility to display materials by different hatching style when we make clipping"

This commit is contained in:
nds
2018-11-08 13:05:54 +03:00
parent 7d2af73a33
commit ce5e73b94c
2 changed files with 25 additions and 2 deletions

View File

@@ -649,10 +649,10 @@ void AIS_InteractiveObject::SynchronizeAspects()
{
if (!aGroupIter.Value().IsNull())
{
Handle(Graphic3d_AspectFillCapping) aCappingAspect = aGrp->FillCappingAspect();
Handle(Graphic3d_AspectFillCapping) aCappingAspect = aGroupIter.Value()->FillCappingAspect();
if (!aCappingAspect.IsNull())
{
aGrp->SetGroupPrimitivesAspect (aCappingAspect);
aGroupIter.Value()->SetGroupPrimitivesAspect (aCappingAspect);
}
aGroupIter.ChangeValue()->SynchronizeAspects();
}

View File

@@ -293,6 +293,29 @@ void OpenGl_Group::SynchronizeAspects()
}
}
// =======================================================================
// function : SetGroupPrimitivesAspect
// purpose :
// =======================================================================
void OpenGl_Group::SetGroupPrimitivesAspect (const Handle(Graphic3d_AspectFillCapping)& theAspect)
{
if (IsDeleted())
{
return;
}
if (myAspectFillCapping == NULL)
{
myAspectFillCapping = new OpenGl_CappingPlaneResource (theAspect);
}
else
{
myAspectFillCapping->SetAspect (theAspect);
}
Update();
}
// =======================================================================
// function : AddPrimitiveArray
// purpose :