From b1264f7d8ef586cee1112195ba5194b2192eb22b Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 8 Sep 2016 10:32:55 +0300 Subject: [PATCH] Redisplay AIS presentation in all modes if deflection is changed. --- src/GeomAPI/GeomAPI_AISObject.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GeomAPI/GeomAPI_AISObject.cpp b/src/GeomAPI/GeomAPI_AISObject.cpp index 8510cdca3..bc6aa29a4 100644 --- a/src/GeomAPI/GeomAPI_AISObject.cpp +++ b/src/GeomAPI/GeomAPI_AISObject.cpp @@ -386,6 +386,10 @@ bool GeomAPI_AISObject::setDeflection(const double theDeflection) if (fabs(aCoefficient-theDeflection) > Precision::Confusion()) { isModified = true; anAISShape->SetOwnDeviationCoefficient(theDeflection); + // redisplay is necessary here to update presentation in all modes + // Standard True flag. Displayer uses Standard False flag. If it will be changed in + // displayer, redisplay here will not be necessary. But performance should be checked. + anAISShape->Redisplay(Standard_True); } } } -- 2.39.2