From af6d1f0b41230e9c2e1d130f0a8d60df5deea465 Mon Sep 17 00:00:00 2001 From: srn Date: Mon, 20 Mar 2006 14:19:52 +0000 Subject: [PATCH] BugID: IPAL11881, added a missing code that outputs a Python script that restores visual parameters --- src/VISU_I/VISU_DumpPython.cc | 9 +++++++++ 1 file changed, 9 insertions(+) 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<