Cleanup: Fix building warnings on gcc 9.4.0
Solution by Jacques Lucke
This commit is contained in:
parent
81eac17737
commit
2287b98e7e
Notes:
blender-bot
2023-02-14 08:24:03 +01:00
Referenced by issue #99066, VSE visible glitches in Sequencer edtor area Referenced by issue #98661, 3.2: Potential candidates for corrective releases
|
@ -298,7 +298,7 @@ static bool transform_active_color(Mesh &mesh, const TransformFn &transform_fn)
|
|||
attribute_math::convert_to_static_type(color_attribute.varray.type(), [&](auto dummy) {
|
||||
using T = decltype(dummy);
|
||||
threading::parallel_for(selection.index_range(), 1024, [&](IndexRange range) {
|
||||
for (const int i : selection.slice(range)) {
|
||||
for ([[maybe_unused]] const int i : selection.slice(range)) {
|
||||
if constexpr (std::is_same_v<T, ColorGeometry4f>) {
|
||||
ColorGeometry4f color = color_attribute.varray.get<ColorGeometry4f>(i);
|
||||
transform_fn(color);
|
||||
|
|
Loading…
Reference in New Issue