Blender Git Commit Log

Git Commits -> Revision 95afc53

Revision 95afc53 by Vincent Blankfield (master)
December 18, 2020, 13:13 (GMT)
Fix T83716: Dope Sheet, incorrect scaling of channel UI elements

Change the top coordinate of the animation channel list UI elements to
`rect->ymin` so they correctly span from `rect->ymin` to
`channel_height`.

Some buttons in the dope sheet channels didn't scale properly with the
`Keyframe Scale Factor` preferences setting. This was caused by using
the `ymid` value (`ymid = BLI_rctf_cent_y(rect) - 0.5f * ICON_WIDTH`) to
position the buttons that supposed to fill all vertical space in the
channel (with `channel_height` height). The `ymid` value is only
appropriate for the UI elements that with `ICON_WIDTH` height.

Maniphest Tasks: T83716

Reviewed by: sybren

Differential Revision: https://developer.blender.org/D9841

Commit Details:

Full Hash: 95afc53604de148c0ed7cfbee88906ae09f6b807
Parent Commit: e576401
Committed By: Sybren A. Stüvel
Lines Changed: +5, -5

1 Modified Path:

/source/blender/editors/animation/anim_channels_defines.c (+5, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021