]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
NPAL14191: Regression: error with function generateFrames().
authorjfa <jfa@opencascade.com>
Tue, 12 Dec 2006 14:22:37 +0000 (14:22 +0000)
committerjfa <jfa@opencascade.com>
Tue, 12 Dec 2006 14:22:37 +0000 (14:22 +0000)
src/VISU_I/VISU_TimeAnimation.cxx

index 7e2027e8f3894805d520e97a7a4e25dbc4b5f688..a7ed33b27470510504e06829e4a0c2bdee7b2ec7 100644 (file)
@@ -399,6 +399,7 @@ void VISU_TimeAnimation::generatePresentations(CORBA::Long theFieldNum) {
 
   using namespace VISU;
   switch (aData.myPrsType) {
+  case VISU::TSCALARMAP:
   case VISU::TPRSMERGER: // ScalarMap
     GeneratePresentations<PrsMerger_i>(myStudy,
                                       aData,
@@ -1438,6 +1439,7 @@ std::string GetPresentationComment (VISU::VISUType thePrsType)
 {
   std::string aPrsCmt;
   switch (thePrsType) {
+  case VISU::TSCALARMAP:
   case VISU::TPRSMERGER:
     aPrsCmt = VISU::PrsMerger_i::myComment;
     break;
@@ -1623,7 +1625,8 @@ void VISU_TimeAnimation::restoreFromStudy(_PTR(SObject) theField)
     string aStr = aName->Value();
     QString strName (aStr.c_str());
 
-    if (strName == VISU::PrsMerger_i::myComment.c_str())
+    if (strName == VISU::PrsMerger_i::myComment.c_str() ||
+        strName == VISU::ScalarMap_i::myComment.c_str())
       aData.myPrsType = VISU::TPRSMERGER;
     else if (strName == VISU::IsoSurfaces_i::myComment.c_str())
       aData.myPrsType = VISU::TISOSURFACE;