Fix T84106: attribute mix node worked incorrectly on float attributes

This commit is contained in:
Jacques Lucke
2021-01-04 10:43:56 +01:00
parent b8e536f381
commit 17be2149a8

View File

@@ -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);
}
}