From: nds Date: Thu, 8 Sep 2016 07:32:55 +0000 (+0300) Subject: Redisplay AIS presentation in all modes if deflection is changed. X-Git-Tag: V_2.5.0~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b1264f7d8ef586cee1112195ba5194b2192eb22b;p=modules%2Fshaper.git Redisplay AIS presentation in all modes if deflection is changed. --- 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); } } }