Fix T89952: GPencil channel box selection offset
The channel box selection was offset for grease pencil layers. This is a proposed fix by @yann-lty Before: {F10227973} After: {F10227974} Reviewed By: #grease_pencil, antoniov Maniphest Tasks: T89952 Differential Revision: https://developer.blender.org/D11962
This commit is contained in:
parent
69edb9c7d9
commit
443ae0f22d
Notes:
blender-bot
2023-02-14 05:41:57 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93 Referenced by issue #89952, GPencil: Dopesheet channel box selection is offset
|
@ -2689,8 +2689,9 @@ static void box_select_anim_channels(bAnimContext *ac, rcti *rect, short selectm
|
|||
/* loop over data, doing box select */
|
||||
for (ale = anim_data.first; ale; ale = ale->next) {
|
||||
float ymin;
|
||||
/* Skip grease pencil datablock. Only use grease pencil layers. */
|
||||
|
||||
if (ale->type == ANIMTYPE_GPDATABLOCK) {
|
||||
ymax -= ACHANNEL_STEP(ac);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue