Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2018-04-30 16:11:43 +0300
committerJoshua Leung <aligorith@gmail.com>2018-04-30 16:11:43 +0300
commit05cf7863c346dd28af812457209c8fcc5154d6fa (patch)
tree64b16e484a0f88c9ee9af328fe90f612790296ae /release/scripts/startup/bl_ui/space_time.py
parent7714d6dd65f3bce9d188f2c7bdde884fb920a602 (diff)
Fix: UI layout for "Pause" button on timeline header was broken (leaving a gap)
A recent change in the UI layout code probably broke how the scale_x for layouts was getting handled. This was leaving a large gap (and causing layouts to pop) when trying to scrub the timeline. This commit fixes this with a manually-found value that largely seems to get rid of the popping problem. There's still a little jumping (1-2 px) but it's less distracting now.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_time.py')
-rw-r--r--release/scripts/startup/bl_ui/space_time.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py
index ef4f7df76fa..a1f0f5a7cc8 100644
--- a/release/scripts/startup/bl_ui/space_time.py
+++ b/release/scripts/startup/bl_ui/space_time.py
@@ -65,14 +65,14 @@ class TIME_HT_editor_buttons(Header):
# since JACK transport doesn't support reversed playback
if scene.sync_mode == 'AUDIO_SYNC' and context.user_preferences.system.audio_device == 'JACK':
sub = row.row(align=True)
- sub.scale_x = 2.0
+ sub.scale_x = 1.4
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(align=True)
- sub.scale_x = 2.0
+ sub.scale_x = 1.4
sub.operator("screen.animation_play", text="", icon='PAUSE')
row.operator("screen.keyframe_jump", text="", icon='NEXT_KEYFRAME').next = True
row.operator("screen.frame_jump", text="", icon='FF').end = True