]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Do not select foreign object in SHAPER
authorvsv <vsv@opencascade.com>
Mon, 2 Mar 2020 09:02:24 +0000 (12:02 +0300)
committervsv <vsv@opencascade.com>
Mon, 2 Mar 2020 09:02:24 +0000 (12:02 +0300)
src/PartSet/PartSet_Filters.cpp

index 2cb28142242900daf88ebed6f581f983f9a09024..a602a31c9372ca676d72f6cf4e53d4dc58e09360 100644 (file)
@@ -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