From: vsv Date: Mon, 2 Mar 2020 09:02:24 +0000 (+0300) Subject: Do not select foreign object in SHAPER X-Git-Tag: V9_5_0a2~68 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=60601cb6f5e7bc3bf506f87942682eb2cd0cdfb2;p=modules%2Fshaper.git Do not select foreign object in SHAPER --- diff --git a/src/PartSet/PartSet_Filters.cpp b/src/PartSet/PartSet_Filters.cpp index 2cb281422..a602a31c9 100644 --- a/src/PartSet/PartSet_Filters.cpp +++ b/src/PartSet/PartSet_Filters.cpp @@ -58,9 +58,11 @@ Standard_Boolean PartSet_GlobalFilter::IsOk(const Handle(SelectMgr_EntityOwner)& ObjectPtr aObj = myWorkshop->findPresentedObject(aAISObj); ModuleBase_Operation* anOperation = myWorkshop->module()->currentOperation(); +#ifdef HAVE_SALOME // Issue #3161: Do not use presentations for non-SHAPER objects if (!anOperation && !aObj.get()) return false; +#endif // the shapes from different documents should be provided if there is no started operation // in order to show/hide results