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:
@@ -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();
|
||||
}
|
||||
|
@@ -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 :
|
||||
|
Reference in New Issue
Block a user