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
path: root/source
diff options
context:
space:
mode:
authorYann Lanthony <yann-lty>2021-07-29 11:38:54 +0300
committerJeroen Bakker <jeroen@blender.org>2021-08-09 09:15:29 +0300
commit443ae0f22dd860b32ab9107fa0d6e7cf00202591 (patch)
tree4ab63b14b2fa44273cdf0f6098e1de25bd67db5e /source
parent69edb9c7d969934e40414ee30bf8a29cf69c4a30 (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
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/animation/anim_channels_edit.c3
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;
}