mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0030124: Visualization, AIS_InteractiveObject - clean up confusing Presentation invalidation logic
Removed excess mechanism for invalidating presentations AIS_InteractiveObject::myRecomputeEveryPrs. PrsMgr_PresentableObject::Update() has been deprecated and replaced by PrsMgr_PresentableObject::UpdatePresentations() recomputing only explicitly invalidated presentations.
This commit is contained in:
@@ -105,12 +105,10 @@ void StdSelect_BRepOwner::HilightWithColor (const Handle(PrsMgr_PresentationMana
|
||||
}
|
||||
|
||||
// do the update flag check
|
||||
if (!myPrsSh.IsNull())
|
||||
if (!myPrsSh.IsNull()
|
||||
&& myPrsSh->ToBeUpdated (true))
|
||||
{
|
||||
TColStd_ListOfInteger aModesList;
|
||||
myPrsSh->ToBeUpdated (aModesList);
|
||||
if (!aModesList.IsEmpty())
|
||||
myPrsSh.Nullify();
|
||||
myPrsSh.Nullify();
|
||||
}
|
||||
|
||||
// generate new presentable shape
|
||||
|
Reference in New Issue
Block a user