1
1

Fix T97173: Color Attributes shading turns black after switching mode.

Sculpt colors tagged the custom data as already created (cd_used), but
should have been tagged as being requested (cd_needed).
This commit is contained in:
2022-05-11 12:44:04 +02:00
parent 690ecaae20
commit 49173399f3

View File

@@ -1231,11 +1231,11 @@ static void sculpt_request_active_vcol(MeshBatchCache *cache, Object *object, Me
&me_query.id, render, ATTR_DOMAIN_MASK_COLOR, CD_MASK_COLOR_ALL);
if (active_i >= 0) {
cache->cd_used.vcol |= 1UL << (uint)active_i;
cache->cd_needed.vcol |= 1UL << (uint)active_i;
}
if (render_i >= 0) {
cache->cd_used.vcol |= 1UL << (uint)render_i;
cache->cd_needed.vcol |= 1UL << (uint)render_i;
}
}