Fix #126330: Crash when using Color Filter #126332

Merged
Sean Kim merged 1 commits from Sean-Kim/blender:fix-126330 into main 2024-08-15 01:34:09 +02:00

View File

@ -113,7 +113,10 @@ static void color_filter_task(Object &ob,
tls.factors.resize(verts.size()); tls.factors.resize(verts.size());
const MutableSpan<float> factors = tls.factors; const MutableSpan<float> factors = tls.factors;
fill_factor_from_hide_and_mask(mesh, verts, factors); fill_factor_from_hide_and_mask(mesh, verts, factors);
auto_mask::calc_vert_factors(ob, *ss.filter_cache->automasking, node, verts, factors); if (ss.filter_cache->automasking)
{
auto_mask::calc_vert_factors(ob, *ss.filter_cache->automasking, node, verts, factors);
}
scale_factors(factors, filter_strength); scale_factors(factors, filter_strength);
tls.new_colors.resize(verts.size()); tls.new_colors.resize(verts.size());