Salome HOME
Redisplay AIS presentation in all modes if deflection is changed.
authornds <nds@opencascade.com>
Thu, 8 Sep 2016 07:32:55 +0000 (10:32 +0300)
committernds <nds@opencascade.com>
Thu, 8 Sep 2016 07:33:12 +0000 (10:33 +0300)
src/GeomAPI/GeomAPI_AISObject.cpp

index 8510cdca30a9d27329f1e4019ec416314125db90..bc6aa29a49c0e3ad432790cdc30b10d72b3d3cf0 100644 (file)
@@ -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);
       }
     }
   }