Fix hang-up when displaying sphere in OCC viewer

This commit is contained in:
vsr 2011-02-08 08:19:01 +00:00
parent 300eff0fcb
commit cac1b61a47

View File

@ -1689,7 +1689,7 @@ PropMap GEOM_Displayer::getDefaultPropepryMap(const QString& viewer_type){
double aDC; double aDC;
//rnv: Currently deflection coefficient is not supported by VTK viewer. //rnv: Currently deflection coefficient is not supported by VTK viewer.
if(viewer_type == SOCC_Viewer::Type()) { if(viewer_type == SOCC_Viewer::Type()) {
double aDC = aResMgr->doubleValue("Geometry", "deflection_coeff", 0.001); aDC = aResMgr->doubleValue("Geometry", "deflection_coeff", 0.001);
} else if( viewer_type==SVTK_Viewer::Type()) { } else if( viewer_type==SVTK_Viewer::Type()) {
aDC = 0.0; aDC = 0.0;
} }