From 48bed8f800b7c32e2e6db56a7bd7cb3379908341 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 06299acd0..a88af8d07 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