diff options
author | Yann Lanthony <yann-lty> | 2021-07-29 11:38:54 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-08-09 09:15:29 +0300 |
commit | 443ae0f22dd860b32ab9107fa0d6e7cf00202591 (patch) | |
tree | 4ab63b14b2fa44273cdf0f6098e1de25bd67db5e | |
parent | 69edb9c7d969934e40414ee30bf8a29cf69c4a30 (diff) |
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
-rw-r--r-- | source/blender/editors/animation/anim_channels_edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c index 64082b08da9..e1d0ed833bf 100644 --- a/source/blender/editors/animation/anim_channels_edit.c +++ b/source/blender/editors/animation/anim_channels_edit.c @@ -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; } |