From: srn Date: Mon, 20 Mar 2006 14:19:52 +0000 (+0000) Subject: BugID: IPAL11881, added a missing code that outputs a Python script that restores... X-Git-Tag: OCC_3_2_0a2_TC~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=af6d1f0b41230e9c2e1d130f0a8d60df5deea465;p=modules%2Fvisu.git BugID: IPAL11881, added a missing code that outputs a Python script that restores visual parameters --- diff --git a/src/VISU_I/VISU_DumpPython.cc b/src/VISU_I/VISU_DumpPython.cc index f3d809ed..29db6391 100644 --- a/src/VISU_I/VISU_DumpPython.cc +++ b/src/VISU_I/VISU_DumpPython.cc @@ -1199,6 +1199,15 @@ namespace VISU{ VISU::DumpChildrenToPython(aStudy,theIsPublished,theIsValidScript,aComponent.in(),aStr,aName2EntryMap,aEntry2NameMap,"",aPrefix); VISU::DumpContainersToPython(aStudy,theIsPublished,theIsValidScript,aComponent.in(),aStr,aName2EntryMap,aEntry2NameMap,"",aPrefix); + //Output the script that sets up the visul parameters. + if(theIsPublished) { + char* script = aStudy->GetDefaultScript("Post-Pro", aPrefix.c_str()); + if(script && strlen(script) > 0) { + aStr << script; + CORBA::string_free(script); + } + } + aStr<