[Bf-blender-cvs] [05cf7863c34] blender2.8: Fix: UI layout for "Pause" button on timeline header was broken (leaving a gap)

Joshua Leung noreply at git.blender.org
Mon Apr 30 15:11:45 CEST 2018


Commit: 05cf7863c346dd28af812457209c8fcc5154d6fa
Author: Joshua Leung
Date:   Mon Apr 30 15:11:43 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB05cf7863c346dd28af812457209c8fcc5154d6fa

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.

===================================================================

M	release/scripts/startup/bl_ui/space_time.py

===================================================================

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



More information about the Bf-blender-cvs mailing list