diff options
author | Hans Goudey <h.goudey@me.com> | 2022-02-21 21:07:14 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-02-21 21:07:14 +0300 |
commit | 9762dbe94e65e4f42061fdbb941a4c12660a6722 (patch) | |
tree | c8cb1d42a8889ae9e07494e2a591b49cbfe4da6b /source/blender/modifiers/intern/MOD_nodes.cc | |
parent | 68a2dc58dee719dc37a0ba2b84c5488999c2a458 (diff) | |
parent | be6bcaa8c13dfca98e56d81afd3d19ba226c2699 (diff) |
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'source/blender/modifiers/intern/MOD_nodes.cc')
-rw-r--r-- | source/blender/modifiers/intern/MOD_nodes.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc index fb10965f77c..210a7edac54 100644 --- a/source/blender/modifiers/intern/MOD_nodes.cc +++ b/source/blender/modifiers/intern/MOD_nodes.cc @@ -454,6 +454,10 @@ static IDProperty *id_property_create_from_socket(const bNodeSocket &socket) ui_data->base.rna_subtype = PROP_COLOR; ui_data->default_array = (double *)MEM_mallocN(sizeof(double[4]), __func__); ui_data->default_array_len = 4; + ui_data->min = 0.0; + ui_data->max = FLT_MAX; + ui_data->soft_min = 0.0; + ui_data->soft_max = 1.0; for (const int i : IndexRange(4)) { ui_data->default_array[i] = double(value->value[i]); } |