From 34bbe071fb33ff4ecfdfdea6339e88fc06316232 Mon Sep 17 00:00:00 2001 From: apo Date: Sun, 25 Nov 2007 10:01:32 +0000 Subject: [PATCH] Fix for Bug IPAL17296 4.x: To correct "visu_apply_properties_successive.py" and "visu_succcessive_animation.py" --- src/VISU_SWIG/visu_apply_properties_successive.py | 6 +++--- src/VISU_SWIG/visu_succcessive_animation.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/VISU_SWIG/visu_apply_properties_successive.py b/src/VISU_SWIG/visu_apply_properties_successive.py index b1f931a0..2868e2b0 100644 --- a/src/VISU_SWIG/visu_apply_properties_successive.py +++ b/src/VISU_SWIG/visu_apply_properties_successive.py @@ -45,7 +45,7 @@ medFile = os.getenv('DATA_DIR') + '/MedFiles/' + medFile myResult = myVisu.ImportFile(medFile) anAnim = myVisu.CreateAnimation(myView); -anAnim.setAnimationMode(VISU.Animation.SUCCCESSIVE) +anAnim.setAnimationMode(VISU.Animation.SUCCESSIVE) aSObj = myStudy.FindObjectIOR(myResult.GetID()) aSObj = aSObj.FindSubObject(1)[1] @@ -87,8 +87,8 @@ while 1: anAnim.publishInStudy() anAnim.saveAnimation() -if anAnim.getAnimationMode() == VISU.Animation.SUCCCESSIVE: - print "End of succcessive animation for 2 fields with presentation type VISU.Animation.SUCCCESSIVE" +if anAnim.getAnimationMode() == VISU.Animation.SUCCESSIVE: + print "End of succcessive animation for 2 fields with presentation type VISU.Animation.SUCCESSIVE" #for i in range(0,anAnim.getNbFields()): aPrs = anAnim.getPresentation(0,0) diff --git a/src/VISU_SWIG/visu_succcessive_animation.py b/src/VISU_SWIG/visu_succcessive_animation.py index 08509e01..0603274f 100644 --- a/src/VISU_SWIG/visu_succcessive_animation.py +++ b/src/VISU_SWIG/visu_succcessive_animation.py @@ -45,7 +45,7 @@ medFile = os.getenv('DATA_DIR') + '/MedFiles/' + medFile myResult = myVisu.ImportFile(medFile) anAnim = myVisu.CreateAnimation(myView); -anAnim.setAnimationMode(VISU.Animation.SUCCCESSIVE); +anAnim.setAnimationMode(VISU.Animation.SUCCESSIVE); aSObj = myStudy.FindObjectIOR(myResult.GetID()) aSObj = aSObj.FindSubObject(1)[1] @@ -87,8 +87,8 @@ while 1: anAnim.publishInStudy() anAnim.saveAnimation() -if anAnim.getAnimationMode() == VISU.Animation.SUCCCESSIVE: - print "End of succcessive animation for 2 fields with presentation type VISU.Animation.SUCCCESSIVE" +if anAnim.getAnimationMode() == VISU.Animation.SUCCESSIVE: + print "End of succcessive animation for 2 fields with presentation type VISU.Animation.SUCCESSIVE" anAnim.clearFields() print "The number of fields in animation after clearFields method is", anAnim.getNbFields() -- 2.39.2