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:53:26 +0300
committerHans Goudey <h.goudey@me.com>2022-02-21 21:53:26 +0300
commita8490a8ee8189fd0191860ed673e07de276db40f (patch)
treef259fc5a840ec64a2e0209d6f8d60a631e178f85
parentaa1e3419eec4f4980544a27f26e6c83b00217912 (diff)
parentbe6bcaa8c13dfca98e56d81afd3d19ba226c2699 (diff)
Merge branch 'blender-v3.1-release' into fix-normals-custom-datatemp-fix-normals-custom-data
-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 1c755a7e2d9..a4b46b951a3 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -435,6 +435,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]);
}