X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FPartSet%2FPartSet_OperationPrs.cpp;h=58b5a53f50a2d1d93972b8bb9adc0cc63b19a013;hb=1105bfe31c0304ffacd85363d070322049d564f1;hp=1466994594869ee530523855c2cb73c5ebb9dbd7;hpb=e202e6825c3b17ed0beaccb487444e016cbb066a;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OperationPrs.cpp b/src/PartSet/PartSet_OperationPrs.cpp index 146699459..58b5a53f5 100755 --- a/src/PartSet/PartSet_OperationPrs.cpp +++ b/src/PartSet/PartSet_OperationPrs.cpp @@ -76,10 +76,17 @@ void PartSet_OperationPrs::updateShapes() myFeatureResults = myFeature->results(); } +bool PartSet_OperationPrs::hasShapes() +{ + return !myFeatureShapes.empty() || !myFeatureResults.empty(); +} + void PartSet_OperationPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager, const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode) { + if (!hasShapes()) + return; // when the feature can not be visualized in the module, the operation preview should not // be visualized also if (!myWorkshop->module()->canDisplayObject(myFeature))