From: srn Date: Fri, 10 Feb 2006 11:08:18 +0000 (+0000) Subject: Modified method DumpPython X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5feb622ebc6a05b8538de2f0b383543377ace53e;p=modules%2Fvisu.git Modified method DumpPython --- diff --git a/src/VISU_I/VISU_DumpPython.cc b/src/VISU_I/VISU_DumpPython.cc index 88d79f7d..67296b9d 100644 --- a/src/VISU_I/VISU_DumpPython.cc +++ b/src/VISU_I/VISU_DumpPython.cc @@ -1175,9 +1175,11 @@ namespace VISU{ VISU::DumpContainersToPython(aStudy,theIsPublished,theIsValidScript,aComponent.in(),aStr,aName2EntryMap,aEntry2NameMap,"",aPrefix); //Output the script that sets up the visul parameters. - _PTR(Study) study(new SALOMEDS_Study(aStudy)); - string defScript = SALOMEDS_IParameters::getDefaultScript(study, "Interface Applicative", "Post-Pro", aPrefix); - if(defScript != "") aStr << defScript; + if(theIsPublished) { + _PTR(Study) study(new SALOMEDS_Study(aStudy)); + string defScript = SALOMEDS_IParameters::getDefaultScript(study, "Interface Applicative", "Post-Pro", aPrefix); + if(defScript != "") aStr << defScript; + } aStr<