diff options
author | Charlie Jolly <mistajolly@gmail.com> | 2022-09-02 17:42:52 +0300 |
---|---|---|
committer | Charlie Jolly <mistajolly@gmail.com> | 2022-09-02 17:42:52 +0300 |
commit | e72b9ca556c392f5b8810f909209440298f40ed6 (patch) | |
tree | 1c4f806429bcc443530c028d484e1924b6313b53 /source/blender/makesrna/intern/rna_nodetree.c | |
parent | 622470fbb22baa8a055d334b3789979d751a0208 (diff) |
Fix: Wrong enum used in Mix Node for factor mode
Wrong type of enum was used for factor mode in rna_nodetree.c
No functional change, thankfully the correct enum had the same value.
Diffstat (limited to 'source/blender/makesrna/intern/rna_nodetree.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index e0bac0f85ec..0be1dd3117c 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -4954,7 +4954,7 @@ static void def_sh_mix(StructRNA *srna) prop = RNA_def_property(srna, "factor_mode", PROP_ENUM, PROP_NONE); RNA_def_property_enum_items(prop, rna_enum_mix_mode_items); - RNA_def_property_enum_default(prop, SOCK_FLOAT); + RNA_def_property_enum_default(prop, NODE_MIX_MODE_UNIFORM); RNA_def_property_ui_text(prop, "Factor Mode", ""); RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_socket_update"); |