]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
fix for Bug IPAL14105: V3_2_4 V3_2_4_delivery V3_2_4pre2
authorenk <enk@opencascade.com>
Thu, 14 Dec 2006 09:22:11 +0000 (09:22 +0000)
committerenk <enk@opencascade.com>
Thu, 14 Dec 2006 09:22:11 +0000 (09:22 +0000)
"PRSMERGER" type of presentation is stored under "Animation", instead of "SCALARMAP".

src/VISU_I/VISU_TimeAnimation.cxx

index a7ed33b27470510504e06829e4a0c2bdee7b2ec7..d2fb6d84fbba55c639f3309bf888735e1820fa68 100644 (file)
@@ -1509,8 +1509,11 @@ SALOMEDS::SObject_ptr VISU_TimeAnimation::publishInStudy()
       ostringstream strOut;
       aData.myPrs[0]->ToStream(strOut);
       string aPrsComment = strOut.str();
+      string aPrsMyComment = aData.myPrs[0]->GetComment();
+      if(aPrsMyComment == "PRSMERGER")
+       aPrsMyComment = "SCALARMAP";
       VISU::CreateAttributes(myStudy, newObj->GetID().c_str(),"","",
-                            aData.myPrs[0]->GetComment(),"",aPrsComment.c_str(),true);
+                            aPrsMyComment.c_str(),"",aPrsComment.c_str(),true);
     }
   }
   aStudyBuilder->CommitCommand();