]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
BugID: IPAL11881, added a missing code that outputs a Python script that restores...
authorsrn <srn@opencascade.com>
Mon, 20 Mar 2006 14:19:52 +0000 (14:19 +0000)
committersrn <srn@opencascade.com>
Mon, 20 Mar 2006 14:19:52 +0000 (14:19 +0000)
src/VISU_I/VISU_DumpPython.cc

index f3d809ed7fea735e81f4ce2218dc9e429ffb8b85..29db6391ee045ca1bb79f540e323624d6faf4137 100644 (file)
@@ -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<<aPrefix<<"pass"<<endl;
 
 #ifndef COUT