[Bf-blender-cvs] [26ab90e49bb] blender-v2.93-release: Fix T87640: Grease Pencil layer visibility/locking not synchronized from Dope Sheet to Properties

Philipp Oeser noreply at git.blender.org
Wed Apr 21 11:19:20 CEST 2021


Commit: 26ab90e49bb49e5ff86d19bd19934293e6891d60
Author: Philipp Oeser
Date:   Tue Apr 20 12:23:42 2021 +0200
Branches: blender-v2.93-release
https://developer.blender.org/rB26ab90e49bb49e5ff86d19bd19934293e6891d60

Fix T87640: Grease Pencil layer visibility/locking not synchronized from Dope Sheet to Properties

Properties Editor is a bit more picky (compared to the Outliner for
example) when it comes to listening to grease pencil notifiers -- it
requires the action to be set.
So when adding the notifier in the dopesheet from the channels (done in
`achannel_setting_flush_widget_cb`), now add the `NA_EDITED` action.

Maniphest Tasks: T87640

Differential Revision: https://developer.blender.org/D11025

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

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

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

diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c
index 2bfa417eb78..6dd1fe75163 100644
--- a/source/blender/editors/animation/anim_channels_defines.c
+++ b/source/blender/editors/animation/anim_channels_defines.c
@@ -4666,7 +4666,7 @@ static void achannel_setting_flush_widget_cb(bContext *C, void *ale_npoin, void
     }
 
     /* UI updates */
-    WM_event_add_notifier(C, NC_GPENCIL | ND_DATA, NULL);
+    WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_EDITED, NULL);
   }
 
   /* Tag for full animation update, so that the settings will have an effect. */



More information about the Bf-blender-cvs mailing list