Revision: 33847
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33847
Author: lmg
Date: 2010-12-22 12:37:56 +0100 (Wed, 22 Dec 2010)
Log Message:
-----------
hide the play-reversed button if using JACK + A/V sync
(jack doesn't support reversed playback)
hey team, I'm the new guy.
proud to be on board! =)
Modified Paths:
--------------
trunk/blender/release/scripts/ui/space_time.py
Modified: trunk/blender/release/scripts/ui/space_time.py
===================================================================
--- trunk/blender/release/scripts/ui/space_time.py 2010-12-22 10:51:34 UTC
(rev 33846)
+++ trunk/blender/release/scripts/ui/space_time.py 2010-12-22 11:37:56 UTC
(rev 33847)
@@ -57,8 +57,16 @@
row.operator("screen.frame_jump", text="", icon='REW').end = False
row.operator("screen.keyframe_jump", text="",
icon='PREV_KEYFRAME').next = False
if not screen.is_animation_playing:
- row.operator("screen.animation_play", text="",
icon='PLAY_REVERSE').reverse = True
- row.operator("screen.animation_play", text="", icon='PLAY')
+ # if using JACK and A/V sync:
+ # hide the play-reversed button
+ # since JACK transport doesn't support reversed playback
+ if (context.user_preferences.system.audio_device == 'JACK' and
scene.sync_mode == 'AUDIO_SYNC'):
+ sub = row.row()
+ sub.scale_x = 2.0
+ sub.operator("screen.animation_play", text="", icon='PLAY')
+ else:
+ row.operator("screen.animation_play", text="",
icon='PLAY_REVERSE').reverse = True
+ row.operator("screen.animation_play", text="", icon='PLAY')
else:
sub = row.row()
sub.scale_x = 2.0
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs