// If the object is not a line then it is accepted
const ModelAPI_ResultValidator* aLineValidator =
dynamic_cast<const ModelAPI_ResultValidator*>(aFactory->validator("SketchPlugin_ResultLine"));
- if (!aLineValidator->isValid(theObject))
+ bool aLineValid = aLineValidator->isValid(theObject);
+
+ const ModelAPI_ResultValidator* anArcValidator =
+ dynamic_cast<const ModelAPI_ResultValidator*>(aFactory->validator("SketchPlugin_ResultArc"));
+ bool anArcValid = anArcValidator->isValid(theObject);
+
+ if (!aLineValid && !anArcValid)
return true;
// If it is a line then we have to check that first attribute id not a line
}
//**************************************************************
-#include <SelectMgr_ListIteratorOfListOfFilter.hxx>
void XGUI_SelectionMgr::updateSelectedOwners(bool isUpdateViewer)
{
Handle(AIS_InteractiveContext) aContext = myWorkshop->viewer()->AISContext();