openshot.code team mailing list archive
-
openshot.code team
-
Mailing list archive
-
Message #00036
[Branch ~openshot.code/openshot/main] Rev 530: Fixed a regression with the animated titles not being added to the project tree, bug #837888.
------------------------------------------------------------
revno: 530
committer: Andy Finch <we.rocked.in79@xxxxxxxxx>
branch nick: openshot
timestamp: Wed 2011-08-31 22:11:19 +0100
message:
Fixed a regression with the animated titles not being added to the project tree, bug #837888.
modified:
openshot/windows/BlenderGenerator.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/BlenderGenerator.py'
--- openshot/windows/BlenderGenerator.py 2011-07-19 19:24:34 +0000
+++ openshot/windows/BlenderGenerator.py 2011-08-31 21:11:19 +0000
@@ -629,8 +629,15 @@
length = end_frame - start_frame
# add file to current project
- f = self.project.project_folder.AddFile(first_image, ignore_image_sequences=True)
+ #f = self.project.project_folder.AddFile(first_image, ignore_image_sequences=True)
+ f = self.project.thumbnailer.GetFile(first_image)
+ if f:
+ self.project.project_folder.items.append(f)
+
+ # mark project as modified
+ self.project.set_project_modified(is_modified=True, refresh_xml=False, type=_("Added file"))
+
# Update the file properties (since it's added as an image)
# We need to make it look like a video
f.label = _("Image Sequence")