Cleanup: Fix build error on Windows

This commit is contained in:
Hans Goudey 2023-05-23 20:59:08 -04:00
parent 9268a47b5b
commit 37b6ba7616
1 changed files with 4 additions and 1 deletions

View File

@ -273,7 +273,10 @@ static void transform_active_color_data(
[&](auto type_tag) {
using T = typename decltype(type_tag)::type;
for ([[maybe_unused]] const int i : selection.slice(range)) {
if constexpr (std::is_same_v<T, ColorGeometry4f>) {
if constexpr (std::is_void_v<T>) {
BLI_assert_unreachable();
}
else if constexpr (std::is_same_v<T, ColorGeometry4f>) {
ColorGeometry4f color = color_attribute.varray.get<ColorGeometry4f>(i);
transform_fn(color);
color_attribute.varray.set_by_copy(i, &color);