From 6ef40a3e9f954665b1038f68c5bc7a186bb8a71e Mon Sep 17 00:00:00 2001 From: Amelie Fondevilla Date: Thu, 24 Aug 2023 16:01:19 +0200 Subject: [PATCH] Fix: GPv3: Editable channels filtering was inverted for grease pencil channels As pointed out in #111426, the filtering for only editable channels was wrongly set for grease pencil layers, the layer being editable if it is not locked, and not the other way around. Pull Request: https://projects.blender.org/blender/blender/pulls/111475 Co-authored-by: Pratik Borhade --- source/blender/editors/animation/anim_filter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/animation/anim_filter.cc b/source/blender/editors/animation/anim_filter.cc index c6407e36dc3..0bb75ab1f73 100644 --- a/source/blender/editors/animation/anim_filter.cc +++ b/source/blender/editors/animation/anim_filter.cc @@ -1776,7 +1776,7 @@ static size_t animdata_filter_grease_pencil_layer(ListBase *anim_data, } /* Only if the layer is editable. */ - if ((filter_mode & ANIMFILTER_FOREDIT) && !layer.is_locked()) { + if ((filter_mode & ANIMFILTER_FOREDIT) && layer.is_locked()) { return items; }