← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 705: Improved SHIFT + Delete clip to also shift transitions after the clip

 

------------------------------------------------------------
revno: 705
fixes bug: https://launchpad.net/bugs/1029508
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Sun 2012-09-09 22:11:09 -0500
message:
  Improved SHIFT + Delete clip to also shift transitions after the clip
modified:
  openshot/windows/MainGTK.py


--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main

Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/windows/MainGTK.py'
--- openshot/windows/MainGTK.py	2012-09-10 00:07:13 +0000
+++ openshot/windows/MainGTK.py	2012-09-10 03:11:09 +0000
@@ -3794,6 +3794,12 @@
 					if start >= start_of_selected:
 						clip.position_on_track = start + shift
 						
+				# loop through transitions, and shift
+				for tran in self.selected_clip.parent.transitions:
+					start = float(tran.position_on_track)
+					if start >= start_of_selected:
+						tran.position_on_track = start + shift
+						
 			self.project.set_project_modified(is_modified=True, refresh_xml=True, type = _("Shifted clips"))
 							
 			# render timeline