[Bf-blender-cvs] [cf9709fd1ee] blender-v2.92-release: Fix T84686: Node vector socket default values not animate-able
Hans Goudey
noreply at git.blender.org
Wed Jan 13 21:33:36 CET 2021
Commit: cf9709fd1eee72dff0716541a57df4ff8ec9a4b9
Author: Hans Goudey
Date: Wed Jan 13 14:33:28 2021 -0600
Branches: blender-v2.92-release
https://developer.blender.org/rBcf9709fd1eee72dff0716541a57df4ff8ec9a4b9
Fix T84686: Node vector socket default values not animate-able
{rB1d3b92bdeabc} disabled animating other properties of the socket default
values, like the "min" and "max" properties, as well as the "default_value"
of the "default_value". That naming confusion lead to the commit
inadvertently removing animation for the vector socket in RNA.
I checked that the other socket types don't have the same issue.
===================================================================
M source/blender/makesrna/intern/rna_nodetree.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index 36f12eb3cca..a01f6b2db5d 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -9347,7 +9347,6 @@ static void rna_def_node_socket_vector(BlenderRNA *brna,
prop = RNA_def_property(srna, "default_value", PROP_FLOAT, subtype);
RNA_def_property_float_sdna(prop, NULL, "value");
RNA_def_property_float_array_default(prop, value_default);
- RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
RNA_def_property_float_funcs(prop, NULL, NULL, "rna_NodeSocketStandard_vector_range");
RNA_def_property_ui_text(prop, "Default Value", "Input value used for unconnected socket");
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_NodeSocketStandard_value_update");
More information about the Bf-blender-cvs
mailing list