[pitivi] track: Do no add start and end keyframe to our controlled keyframe list in interpollator



commit 64dca7f9ec4e536687199498eb9bfd4a08317a06
Author: Thibault Saunier <thibault saunier collabora co uk>
Date:   Tue May 24 12:42:10 2011 -0400

    track: Do no add start and end keyframe to our controlled keyframe list  in interpollator
    
    Fixes: 636773

 pitivi/timeline/track.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index 2d1c841..27339b1 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -186,6 +186,10 @@ class Interpolator(Signallable, Loggable):
         that the new keyframe likes on the existing curve at that timestampi
 
         returns: the keyframe object"""
+        if time_or_keyframe is self.start or time_or_keyframe is self.end:
+            self.debug("We don't want to add the starting and end keyframes to"
+                       " our list of controlled keyframes")
+            return
 
         if isinstance(time_or_keyframe, Keyframe):
             keyframe = time_or_keyframe



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]