From: apo Date: Fri, 5 May 2006 06:09:28 +0000 (+0000) Subject: Fix for Bug12344 X-Git-Tag: mergeto_trunk_06May06~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c3266228983c584a68332970548bf37772eed5ab;p=modules%2Fvisu.git Fix for Bug12344 "VISU_Example_04.py" raises error during execution. --- diff --git a/src/VISU_SWIG/batchmode_visu_view3d.py b/src/VISU_SWIG/batchmode_visu_view3d.py index f5154355..cc4778d5 100644 --- a/src/VISU_SWIG/batchmode_visu_view3d.py +++ b/src/VISU_SWIG/batchmode_visu_view3d.py @@ -246,7 +246,7 @@ myResult = myVisu.ImportFile(medFile) anAnim = myVisu.CreateAnimation(myView); aSObj = myStudy.FindObjectIOR(myResult.GetID()) aSObj = aSObj.FindSubObject(1)[1] -aSObj = aSObj.FindSubObject(2)[1] +aSObj = aSObj.FindSubObject(3)[1] aSObj = aSObj.FindSubObject(2)[1] anAnim.addField(aSObj) anAnim.setPresentationType(0,VISU.TISOSURFACE)