[pitivi] interpolator: Do not allow removing a keyframe that don't belong to us
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] interpolator: Do not allow removing a keyframe that don't belong to us
- Date: Tue, 24 May 2011 18:53:36 +0000 (UTC)
commit fbc7504ff1b4960941ef6a09555f1558b8b17256
Author: Thibault Saunier <thibault saunier collabora co uk>
Date: Sun May 22 21:57:04 2011 -0400
interpolator: Do not allow removing a keyframe that don't belong to us
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 b6b0196..2d1c841 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -219,6 +219,10 @@ class Interpolator(Signallable, Loggable):
return keyframe
def removeKeyframe(self, keyframe):
+ if keyframe not in self._keyframes:
+ self.debug("This keyframe doesn't belong to me")
+ return
+
old_value = self._controller.get(self._property.name, keyframe.time)
self._controller.unset(self._property.name, keyframe.time)
if keyframe is not self.start and keyframe is not self.end:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]