Fix #146281: Overlay: Uninitialized data in Paint Mask
The early out case did not initialize the data. This caused garbage data to be used for the visibility flag, producing inconsistent result. Pull Request: https://projects.blender.org/blender/blender/pulls/146704
This commit is contained in:
committed by
Clément Foucault
parent
fd76bfdd46
commit
34e5f0a4a6
@@ -19,6 +19,7 @@ static void extract_paint_overlay_flags(const MeshRenderData &mr, MutableSpan<in
|
||||
selection = mr.select_vert;
|
||||
}
|
||||
if (selection.is_empty() && mr.hide_poly.is_empty() && (!mr.edit_bmesh || !mr.orig_index_vert)) {
|
||||
flags.fill(0);
|
||||
return;
|
||||
}
|
||||
const OffsetIndices faces = mr.faces;
|
||||
|
||||
Reference in New Issue
Block a user