From 13bd293391bee23ffbc6361517baff0876a6998f Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 17 Nov 2015 08:42:03 +0300 Subject: [PATCH] Define to have opportunity do not visualize custom presentation. --- src/PartSet/PartSet_CustomPrs.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/PartSet/PartSet_CustomPrs.cpp b/src/PartSet/PartSet_CustomPrs.cpp index ab96e5538..b2315bffb 100755 --- a/src/PartSet/PartSet_CustomPrs.cpp +++ b/src/PartSet/PartSet_CustomPrs.cpp @@ -21,6 +21,8 @@ #include #include +//#define DO_NOT_VISUALIZE_CUSTOM_PRESENTATION + #define OPERATION_PARAMETER_COLOR "255, 255, 0" PartSet_CustomPrs::PartSet_CustomPrs(ModuleBase_IWorkshop* theWorkshop) @@ -40,6 +42,10 @@ bool PartSet_CustomPrs::isActive() bool PartSet_CustomPrs::activate(const FeaturePtr& theFeature, const bool theUpdateViewer) { +#ifdef DO_NOT_VISUALIZE_CUSTOM_PRESENTATION + return false; +#endif + bool isModified = false; Handle(PartSet_OperationPrs) anOperationPrs = getPresentation(); @@ -112,6 +118,10 @@ Handle(PartSet_OperationPrs) PartSet_CustomPrs::getPresentation() bool PartSet_CustomPrs::redisplay(const ObjectPtr& theObject, const bool theUpdateViewer) { +#ifdef DO_NOT_VISUALIZE_CUSTOM_PRESENTATION + return false; +#endif + bool isModified = false; // the presentation should be recomputed if the previous AIS depend on the result // [it should be hiddend] or the new AIS depend on it [it should be visualized] -- 2.39.2