X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_OperationPrs.cpp;h=66e146f96210959647f26a920067448f0b35c093;hb=857b1f72d9703c46c6c8c9bb239821d314344c86;hp=64e785960305132e53c03b392613b5157a078def;hpb=e98f5ede19029ac09ae9fe78061a4485bd6b86b5;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OperationPrs.cpp b/src/PartSet/PartSet_OperationPrs.cpp index 64e785960..66e146f96 100755 --- a/src/PartSet/PartSet_OperationPrs.cpp +++ b/src/PartSet/PartSet_OperationPrs.cpp @@ -12,6 +12,7 @@ #include "XGUI_Displayer.h" #include "ModuleBase_Tools.h" +#include "ModuleBase_IModule.h" #include #include @@ -78,6 +79,11 @@ void PartSet_OperationPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode) { + // when the feature can not be visualized in the module, the operation preview should not + // be visualized also + if (!myWorkshop->module()->canDisplayObject(myFeature)) + return; + Quantity_Color aColor(1., 1., 0., Quantity_TOC_RGB); // yellow SetColor(aColor);