From 7797fcc3c9edf77138788ea763ae159edea9d9ec Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Mon, 26 Jun 2023 11:40:12 +0200 Subject: [PATCH] Nodes: Don't allow animation for node mute property Discussions on https://projects.blender.org/blender/blender/pulls/108634 pointed to the idea that the mute property probably shouldn't have been animateable to begin with because of performance concerns. This simply removes the ability to animate the property. Pull Request: https://projects.blender.org/blender/blender/pulls/108849 --- source/blender/makesrna/intern/rna_nodetree.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/makesrna/intern/rna_nodetree.cc b/source/blender/makesrna/intern/rna_nodetree.cc index b2bc80cda52..6f8412e9947 100644 --- a/source/blender/makesrna/intern/rna_nodetree.cc +++ b/source/blender/makesrna/intern/rna_nodetree.cc @@ -12879,7 +12879,8 @@ static void rna_def_node(BlenderRNA *brna) RNA_def_property_update(prop, NC_NODE | ND_DISPLAY, nullptr); prop = RNA_def_property(srna, "mute", PROP_BOOLEAN, PROP_NONE); - RNA_def_property_boolean_sdna(prop, nullptr, "flag", NODE_MUTED); + RNA_def_property_boolean_sdna(prop, NULL, "flag", NODE_MUTED); + RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); RNA_def_property_ui_text(prop, "Mute", ""); RNA_def_property_update(prop, 0, "rna_Node_update");