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.
This commit is contained in:
parent
9dab489d51
commit
cf9709fd1e
Notes:
blender-bot
2023-02-14 04:10:15 +01:00
Referenced by issue #84686, Regression: Adding a keyframe to the Mapping shader node fails
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue