//
#include "PartSet_WidgetShapeSelector.h"
+
+#include "PartSet_CenterPrs.h"
#include "PartSet_Module.h"
#include "PartSet_SketcherMgr.h"
//********************************************************************
bool PartSet_WidgetShapeSelector::isValidSelectionCustom(const ModuleBase_ViewerPrsPtr& thePrs)
{
- bool aValid = ModuleBase_WidgetShapeSelector::isValidSelectionCustom(thePrs);
+ bool aValid = false;
+ if (thePrs.get() && thePrs->interactive()->IsKind(STANDARD_TYPE(PartSet_CenterPrs)))
+ aValid = true; // we should not check acceptSubShape for such presentation
+ else
+ aValid = ModuleBase_WidgetShapeSelector::isValidSelectionCustom(thePrs);
+
if (aValid) {
ObjectPtr anObject = myWorkshop->selection()->getResult(thePrs);
aValid = myExternalObjectMgr->isValidObject(anObject);