From: Artem Zhidkov Date: Wed, 27 May 2020 13:20:36 +0000 (+0300) Subject: Issue #3256: Hang up when displaying the model X-Git-Tag: V9_6_0a1~85 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2dfe5620ba85f46b0a9fd1e67726e04dd44bf904;p=modules%2Fshaper.git Issue #3256: Hang up when displaying the model Provide a workaround to eliminate the hang up. --- diff --git a/src/ModuleBase/ModuleBase_Tools.cpp b/src/ModuleBase/ModuleBase_Tools.cpp index a3697ee37..08a9ef0ae 100644 --- a/src/ModuleBase/ModuleBase_Tools.cpp +++ b/src/ModuleBase/ModuleBase_Tools.cpp @@ -470,8 +470,12 @@ void setDefaultDeviationCoefficient(const TopoDS_Shape& theShape, double aDeflection; if (isConstruction) aDeflection = Config_PropManager::real("Visualization", "construction_deflection"); - else + else { aDeflection = Config_PropManager::real("Visualization", "body_deflection"); + // workaround (issue #3256): to avoid hang up on one of restricted models + // set the maximal deflection to be the same as a default body deflection + theDrawer->SetMaximalChordialDeviation(aDeflection); + } theDrawer->SetDeviationCoefficient(aDeflection); }