From: rnv Date: Wed, 24 Jun 2015 10:08:19 +0000 (+0300) Subject: Partial fix for the '23113: EDF 7612 PARAVIS: The use of the animation view after... X-Git-Tag: V7_7_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9d80749256d9be6dcf491b7f816bd0247889d41a;p=modules%2Fparavis.git Partial fix for the '23113: EDF 7612 PARAVIS: The use of the animation view after applying the macro mode makes Salome terminating in SIGSEGV' issue. --- diff --git a/src/Macro/modes.py b/src/Macro/modes.py index 4c1b13b5..71bce70a 100644 --- a/src/Macro/modes.py +++ b/src/Macro/modes.py @@ -81,7 +81,9 @@ else : TimeAnimationCue1 = GetTimeTrack() TimeAnimationCue1.Enabled = 0 - KeyFrameAnimationCue1 = GetAnimationTrack( ScaleVector1.GetProperty('ScaleFactor')) + KeyFrameAnimationCue1 = KeyFrameAnimationCue() + KeyFrameAnimationCue1.AnimatedProxy = ScaleVector1 + KeyFrameAnimationCue1.AnimatedPropertyName = "ScaleFactor" KeyFrame0 = CompositeKeyFrame( KeyValues=[1.0], Interpolation='Sinusoid' ) KeyFrame1 = CompositeKeyFrame( KeyTime=1.000000001, KeyValues=[1.0] ) @@ -90,6 +92,8 @@ else : AnimationScene1.Cues.append(KeyFrameAnimationCue1) AnimationScene1.Loop = 1 AnimationScene1.PlayMode = 'Sequence' + AnimationScene1.StartTime = 0 + AnimationScene1.EndTime = 1 AnimationScene1.NumberOfFrames = 21 WarpByVectorDataRepresentation = Show(WarpByVector1)