Fix: Windows build error in template code

`using namespace blender` didn't make it into the lambda,
likely because of a compiler bug.
This commit is contained in:
Hans Goudey
2023-05-24 00:16:52 -04:00
parent 44d9a5eb72
commit a6eae61b52

View File

@@ -271,6 +271,7 @@ static void transform_active_color_data(
threading::parallel_for(selection.index_range(), 1024, [&](IndexRange range) {
color_attribute.varray.type().to_static_type_tag<ColorGeometry4f, ColorGeometry4b>(
[&](auto type_tag) {
using namespace blender;
using T = typename decltype(type_tag)::type;
for ([[maybe_unused]] const int i : selection.slice(range)) {
if constexpr (std::is_void_v<T>) {