Handle(AIS_InteractiveObject) anAIS = anObject->impl<Handle(AIS_InteractiveObject)>();
if (!anAIS.IsNull()) {
emit beforeObjectErase(theObject, anObject);
- aContext->Remove(anAIS);
+ aContext->Remove(anAIS, false/*update viewer*/);
aErased = true;
}
}
Handle(AIS_InteractiveObject) anIO = aAISObj->impl<Handle(AIS_InteractiveObject)>();
if (!anIO.IsNull()) {
emit beforeObjectErase(aObj, aAISObj);
- aContext->Remove(anIO, false);
+ aContext->Remove(anIO, false/*update viewer*/);
aErased = true;
}
}