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
diff options
context:
space:
mode:
authorFalk David <falkdavid@gmx.de>2021-07-29 11:38:54 +0300
committerFalk David <falkdavid@gmx.de>2021-07-29 11:42:05 +0300
commita70f37bd8a062f2b5c932c6bc8cff84919ca4d43 (patch)
treee9c12bfe6ee418226353bc9bff683811e91e6081
parentd5fd09ab58874a971d21d49eedb46b735e4180f0 (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.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 c6c7cc4adb0..afbd9b2c92d 100644
--- a/source/blender/editors/animation/anim_channels_edit.c
+++ b/source/blender/editors/animation/anim_channels_edit.c
@@ -2683,8 +2683,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;
}