From: gdd Date: Wed, 12 Oct 2011 09:12:05 +0000 (+0000) Subject: rnc: fixed a Bug I introduced. GEOM couldn't compile anymore with OCC < 6.5.2 X-Git-Tag: V6_4_0a1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=be1eb8268538f808939aaf3bfe836c38663ebf87;p=modules%2Fgeom.git rnc: fixed a Bug I introduced. GEOM couldn't compile anymore with OCC < 6.5.2 --- diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 55cbc43bb..a3c3aff6d 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -321,11 +321,16 @@ GEOM_Displayer::GEOM_Displayer( SalomeApp_Study* st ) myToActivate = true; // This parameter is used for activisation/deactivisation of objects to be displayed - // Activate parallel vizualisation only for testiong purpose + #if OCC_VERSION_LARGE > 0x06050100 // Functionnality available only in OCCT 6.5.2 + // Activate parallel vizualisation only for testing purpose // and if the corresponding env variable is set to 1 char* parallel_visu = getenv("PARALLEL_VISU"); if (parallel_visu && atoi(parallel_visu)) + { + MESSAGE("Parallel visualisation on"); BRepMesh_IncrementalMesh::SetParallelDefault(Standard_True); + } + #endif myViewFrame = 0; }