Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-02-21 21:07:14 +0300
committerHans Goudey <h.goudey@me.com>2022-02-21 21:07:14 +0300
commit9762dbe94e65e4f42061fdbb941a4c12660a6722 (patch)
treec8cb1d42a8889ae9e07494e2a591b49cbfe4da6b /source/blender/modifiers
parent68a2dc58dee719dc37a0ba2b84c5488999c2a458 (diff)
parentbe6bcaa8c13dfca98e56d81afd3d19ba226c2699 (diff)
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_nodes.cc4
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]);
}