Fix shadowing error causing a value to be assigned to it's self

This commit is contained in:
Campbell Barton
2023-11-28 12:23:36 +11:00
parent dbb2844ed9
commit 1e84a028b3

View File

@@ -128,9 +128,9 @@ static void sort_indices(MutableSpan<int> indices, const Span<T> values, const i
return value1[component_i] < value2[component_i];
}
if constexpr (std::is_same_v<T, math::Quaternion>) {
const float4 value1 = float4(value1);
const float4 value2 = float4(value2);
return value1[component_i] < value2[component_i];
const float4 value1_quat = float4(value1);
const float4 value2_quat = float4(value2);
return value1_quat[component_i] < value2_quat[component_i];
}
if constexpr (std::is_same_v<T, int2>) {
for (int i = 0; i < 2; i++) {