[pitivi] track: duplicate keyframe curves in trackobject.copy(), which in turn means that splitting clips pro
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] track: duplicate keyframe curves in trackobject.copy(), which in turn means that splitting clips pro
- Date: Wed, 1 Jul 2009 06:48:39 +0000 (UTC)
commit 2a62cf3919b117d9c5bee52cd2044e796178542d
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Fri Jun 26 16:14:11 2009 -0700
track: duplicate keyframe curves in trackobject.copy(), which in turn means that splitting clips properly preserves keyframes
pitivi/timeline/track.py | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index 7669634..59ba5dc 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -321,6 +321,17 @@ class TrackObject(Signallable, Loggable):
media_duration=self.media_duration, priority=self.priority)
other.trimmed_start = self.trimmed_start
+ for property, interpolator in self.interpolators.iteritems():
+ other_interpolator = other.getInterpolator(property.name)
+ other_interpolator.start.value = interpolator.start.value
+ other_interpolator.start.mode = interpolator.start.mode
+ other_interpolator.end.value = interpolator.end.value
+ other_interpolator.end.mode = interpolator.end.mode
+ for kf in interpolator.getInteriorKeyframes():
+ other_interpolator.newKeyFrame(kf.time,
+ kf.value,
+ kf.mode)
+
return other
def snapStartDurationTime(self, *args):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]