From 5fbfd2e75c41fcacf436f668bf4f5898bf37a1a9 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 24 Jun 2020 11:04:56 +0300 Subject: [PATCH] Issue #3222: Update highlighted error points --- src/PartSet/PartSet_CustomPrs.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/PartSet/PartSet_CustomPrs.cpp b/src/PartSet/PartSet_CustomPrs.cpp index 7b98ee619..fc0fb74d4 100644 --- a/src/PartSet/PartSet_CustomPrs.cpp +++ b/src/PartSet/PartSet_CustomPrs.cpp @@ -255,8 +255,10 @@ void PartSet_CustomPrs::clearErrorShape() { if (!myErrorShapes.IsNull()) { Handle(AIS_InteractiveContext) aContext = myWorkshop->viewer()->AISContext(); - if (aContext->IsDisplayed(myErrorShapes)) + if (aContext->IsDisplayed(myErrorShapes)) { aContext->Remove(myErrorShapes, true); + myErrorShapes.Nullify(); + } } } @@ -289,6 +291,7 @@ void PartSet_CustomPrs::processEvent(const std::shared_ptr& theM else { if (!myErrorShapes.IsNull()) { aContext->Remove(myErrorShapes, true); + myErrorShapes.Nullify(); } } } -- 2.39.2