diff options
author | M.G. Kishalmi <lmg@kishalmi.net> | 2010-12-22 14:37:56 +0300 |
---|---|---|
committer | M.G. Kishalmi <lmg@kishalmi.net> | 2010-12-22 14:37:56 +0300 |
commit | 3d58d17442aa6438d9a3ce80101c309272a181b5 (patch) | |
tree | db67585e3c95688679fa2956d93757f01f7d64e6 /release | |
parent | f08fb046ceee8f69dd3fc9964a942509fe651bec (diff) |
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! =)
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/ui/space_time.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/release/scripts/ui/space_time.py b/release/scripts/ui/space_time.py index de295d0fe76..93c6af38dbc 100644 --- a/release/scripts/ui/space_time.py +++ b/release/scripts/ui/space_time.py @@ -57,8 +57,16 @@ class TIME_HT_header(bpy.types.Header): 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 |