diff options
author | Yevgeny Makarov <jenkm> | 2019-08-27 13:52:36 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-27 13:52:42 +0300 |
commit | ed92a1ff6518a0bde7ed52651b888b8760731209 (patch) | |
tree | 2754a528b3c008a323f5a4706cffced230a9461e /release/scripts/startup/bl_ui/space_time.py | |
parent | b19099346aea6e8ed9b4a91bd542d2d8ea42fe9b (diff) |
UI: fix jumping of play/pause buttons, add more space when showing subframes
Differential Revision: https://developer.blender.org/D5604
Diffstat (limited to 'release/scripts/startup/bl_ui/space_time.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_time.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py index 500f889eea9..04a904edde3 100644 --- a/release/scripts/startup/bl_ui/space_time.py +++ b/release/scripts/startup/bl_ui/space_time.py @@ -48,26 +48,27 @@ class TIME_HT_editor_buttons(Header): # hide the play-reversed button # since JACK transport doesn't support reversed playback if scene.sync_mode == 'AUDIO_SYNC' and context.preferences.system.audio_device == 'JACK': - sub = row.row(align=True) - sub.scale_x = 1.4 - sub.operator("screen.animation_play", text="", icon='PLAY') + row.scale_x = 2 + row.operator("screen.animation_play", text="", icon='PLAY') + row.scale_x = 1 else: row.operator("screen.animation_play", text="", icon='PLAY_REVERSE').reverse = True row.operator("screen.animation_play", text="", icon='PLAY') else: - sub = row.row(align=True) - sub.scale_x = 1.4 - sub.operator("screen.animation_play", text="", icon='PAUSE') + row.scale_x = 2 + row.operator("screen.animation_play", text="", icon='PAUSE') + row.scale_x = 1 row.operator("screen.keyframe_jump", text="", icon='NEXT_KEYFRAME').next = True row.operator("screen.frame_jump", text="", icon='FF').end = True layout.separator_spacer() row = layout.row() - row.scale_x = 0.95 if scene.show_subframe: + row.scale_x = 1.15 row.prop(scene, "frame_float", text="") else: + row.scale_x = 0.95 row.prop(scene, "frame_current", text="") row = layout.row(align=True) |