[Bf-blender-cvs] [443ae0f22dd] blender-v2.93-release: Fix T89952: GPencil channel box selection offset

Yann Lanthony noreply at git.blender.org
Mon Aug 9 08:42:33 CEST 2021


Commit: 443ae0f22dd860b32ab9107fa0d6e7cf00202591
Author: Yann Lanthony
Date:   Thu Jul 29 10:38:54 2021 +0200
Branches: blender-v2.93-release
https://developer.blender.org/rB443ae0f22dd860b32ab9107fa0d6e7cf00202591

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

===================================================================

M	source/blender/editors/animation/anim_channels_edit.c

===================================================================

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;
     }



More information about the Bf-blender-cvs mailing list