if (!aCallBack.IsNull() && aCallBack != myCallBack)
{
myCallBack = aCallBack;
+ VInspector_ViewModelHistory* aHistoryModel = dynamic_cast<VInspector_ViewModelHistory*>
+ (myHistoryView->model());
+ myCallBack->SetContext(aContext);
+ myCallBack->SetHistoryModel(aHistoryModel);
}
return true;
}
for (NCollection_List<Handle(AIS_InteractiveObject)>::Iterator anIOIt(aSelectedPresentations); anIOIt.More(); anIOIt.Next())
{
- Handle(AIS_InteractiveObject) aPresentation = Handle(AIS_Shape)::DownCast(anIOIt.Value());
- if (aPresentation.IsNull())
- continue;
- if (theToDisplay) {
+ Handle(AIS_InteractiveObject) aPresentation = anIOIt.Value();
+ if (theToDisplay)
+ {
aContext->Display(aPresentation, false);
aContext->Load(aPresentation, -1, true);
}