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:
authorJacques Lucke <jacques@blender.org>2021-01-04 12:43:56 +0300
committerJacques Lucke <jacques@blender.org>2021-01-04 12:43:56 +0300
commit17be2149a805a3f43a10ff6f800ada429889aa6b (patch)
treeca56e7b1f1f43c35f6257bfb9ef42c8843a81b93 /source/blender/nodes
parentb8e536f3819155f1ed5dfae45bad261b6c328e20 (diff)
Fix T84106: attribute mix node worked incorrectly on float attributes
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc b/source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc
index 2f2558a2d53..3d3a72dd910 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc
@@ -55,7 +55,7 @@ static void do_mix_operation_float(const int blend_mode,
float3 a{inputs_a[i]};
const float3 b{inputs_b[i]};
ramp_blend(blend_mode, a, factor, b);
- const float result = a.length();
+ const float result = a.x;
results.set(i, result);
}
}