openshot.code team mailing list archive
-
openshot.code team
-
Mailing list archive
-
Message #00635
[Branch ~openshot.code/openshot/main] Rev 722: Added a "please wait" cursor to Blender animation rendering, since many of our new animations tak...
------------------------------------------------------------
revno: 722
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Tue 2012-09-25 10:19:03 -0500
message:
Added a "please wait" cursor to Blender animation rendering, since many of our new animations take longer to complete.
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 2012-09-17 18:16:04 +0000
+++ openshot/windows/BlenderGenerator.py 2012-09-25 15:19:03 +0000
@@ -683,6 +683,9 @@
def Render(self, frame=None):
""" Render an images sequence of the current template using Blender 2.56+ and the
Blender Python API. """
+
+ # change cursor to "please wait"
+ self.frm3dGenerator.window.set_cursor(gtk.gdk.Cursor(150))
blend_file_path = os.path.join(self.project.BLENDER_DIR, "blend", self.selected_template)
source_script = os.path.join(self.project.BLENDER_DIR, "scripts", self.selected_template.replace(".blend", ".py"))
@@ -814,6 +817,9 @@
if line == '' and self.process.poll() != None:
break
+
+ # change cursor to "default"
+ gobject.idle_add(self.frm3dGenerator.frm3dGenerator.window.set_cursor, None)
# Check if NO FRAMES are detected
if not self.frame_detected: