From 845cec84bf6e171f8094a9370986d297ca81dbc5 Mon Sep 17 00:00:00 2001 From: YimingWu Date: Fri, 23 May 2025 04:26:52 +0200 Subject: [PATCH] Fix #139199: Grease Pencil: Update compositor node when pass is toggled Compositor node sockets should be updated when toggling grease pencil pass in the pass list. It was missing a `rna_ViewLayer_pass_update`, now it will work as expected. Pull Request: https://projects.blender.org/blender/blender/pulls/139215 --- source/blender/makesrna/intern/rna_layer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/makesrna/intern/rna_layer.cc b/source/blender/makesrna/intern/rna_layer.cc index ddcfbe7d916..1a648a227b4 100644 --- a/source/blender/makesrna/intern/rna_layer.cc +++ b/source/blender/makesrna/intern/rna_layer.cc @@ -688,7 +688,7 @@ void RNA_def_view_layer(BlenderRNA *brna) prop, nullptr, "grease_pencil_flags", GREASE_PENCIL_AS_SEPARATE_PASS); RNA_def_property_ui_text( prop, "Grease Pencil", "Deliver Grease Pencil render result in a separate pass"); - RNA_def_property_update(prop, NC_SCENE | ND_LAYER, nullptr); + RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); /* debug update routine */ func = RNA_def_function(srna, "update", "rna_ViewLayer_update_tagged");