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
This commit is contained in:
Colin Basnett
2023-06-26 11:40:12 +02:00
committed by Colin Basnett
parent fa5a8b3769
commit 7797fcc3c9

View File

@@ -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");