mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0026628: Button Erase (Delete where erase algorythm is used) works incorrect
Update AIS_InteractiveContext::EraseSelected() method. Fix HLR sample Fix samples.
This commit is contained in:
@@ -188,14 +188,17 @@ void CHLRDoc::Fit()
|
||||
void CHLRDoc::OnObjectErase()
|
||||
{
|
||||
Standard_Boolean toUpdateDisplayable = Standard_False;
|
||||
for (myAISContext->InitCurrent(); myAISContext->MoreCurrent(); myAISContext->NextCurrent())
|
||||
myAISContext->InitCurrent();
|
||||
while (myAISContext->MoreCurrent())
|
||||
{
|
||||
myAISContext->Erase (myAISContext->Current(), Standard_True);
|
||||
if (myAISContext->Current()->Type() == AIS_KOI_Shape && myCSelectionDialogIsCreated)
|
||||
{
|
||||
myCSelectionDialog->DiplayableShape()->Remove (Handle(AIS_Shape)::DownCast (myAISContext->Current())->Shape());
|
||||
toUpdateDisplayable = Standard_True;
|
||||
}
|
||||
|
||||
myAISContext->Erase (myAISContext->Current(), Standard_True);
|
||||
myAISContext->InitCurrent();
|
||||
}
|
||||
|
||||
myAISContext->ClearCurrents();
|
||||
|
Reference in New Issue
Block a user