Fix #126330: Crash when using Color Filter #126332
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user