From: epa Date: Mon, 30 Oct 2006 08:29:16 +0000 (+0000) Subject: Add "display only" functionality for created mesh(PAL13556) X-Git-Tag: V3_2_3pre1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ba30890a76b5488ed3bded03c36be1767fd79d6c;p=modules%2Fvisu.git Add "display only" functionality for created mesh(PAL13556) --- diff --git a/src/VISUGUI/VisuGUI_Tools.cxx b/src/VISUGUI/VisuGUI_Tools.cxx index 1ffbc399..f1a23c01 100644 --- a/src/VISUGUI/VisuGUI_Tools.cxx +++ b/src/VISUGUI/VisuGUI_Tools.cxx @@ -1105,6 +1105,10 @@ namespace VISU Utils_Timer timer; timer.Start(); #endif + if(GetResourceMgr()->booleanValue("VISU","display_only",false)){ + const VisuGUI* av = dynamic_cast(theModule); + if(av)(const_cast(av))->OnEraseAll(); + } PublishMeshInView(theModule, pPresent, theViewWindow); SetFitAll(theViewWindow); #ifdef CHECKTIME