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>2021-09-09 02:44:35 +0300
committerHans Goudey <h.goudey@me.com>2021-09-09 02:44:35 +0300
commitdf65103bf0018439409eb3f646793f9b95c01d13 (patch)
tree006ec98ac22fe170bef128e1d97eb2e482ef95b9
parenta131e3bec7f8cf9b81a110881030d983667ce826 (diff)
Fix: Incorrect default for exposed geometry nodes vectors
-rw-r--r--source/blender/modifiers/intern/MOD_nodes.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc
index 9d8630b21e7..47fb6826ca3 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -329,8 +329,8 @@ static IDProperty *id_property_create_from_socket(const bNodeSocket &socket)
ui_data->max = ui_data->soft_max = (double)value->max;
ui_data->default_array = (double *)MEM_mallocN(sizeof(double[3]), "mod_prop_default");
ui_data->default_array_len = 3;
- for (int i = 3; i < 3; i++) {
- ui_data->default_array[i] = (double)value->value[i];
+ for (const int i : IndexRange(3)) {
+ ui_data->default_array[i] = double(value->value[i]);
}
return property;
}