From 2dfe5620ba85f46b0a9fd1e67726e04dd44bf904 Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Wed, 27 May 2020 16:20:36 +0300 Subject: [PATCH] Issue #3256: Hang up when displaying the model Provide a workaround to eliminate the hang up. --- src/ModuleBase/ModuleBase_Tools.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } -- 2.39.2