diff options
author | Hans Goudey <h.goudey@me.com> | 2022-08-02 19:00:38 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-08-02 19:00:57 +0300 |
commit | efe0e2b18370972c14383e809719c2b606abc414 (patch) | |
tree | a2ee9532c3bf417574219886c400d2213400fb77 /source/blender/editors/interface/interface_template_asset_view.cc | |
parent | 97b226ac51188ce1f4ab8bee7820c7dd296c7012 (diff) |
Fix T96810: Invalid sculpt normals after some operations
Mask and color brushes were using the existing PBVH vertex "update tag"
to mark their modifications. This was mostly unnecessary, and causes
unnecessary calculation of normals. It also caused errors though,
because they didn't tag the corresponding PBVH node for normal
recalculation, causing problems on the borders of nodes, since one
node might accumulate into another's vertex normals, but the other
node wouldn't also accumulate and normalize the normals.
The solution is to only use the update tag for tagging deformed
vertices that need recalculated normals. Everything else is handled at
the PBVH node level (which was already the case, but it wasn't clear).
The update tag was also used for undo to tag the nodes corresponding to
changed vertices. This was wrong though, because normals and visibility
would also be recalculated for just color or mask undo steps. Instead,
just use local arrays to map from vertices to nodes.
Differential Revision: https://developer.blender.org/D15581
Diffstat (limited to 'source/blender/editors/interface/interface_template_asset_view.cc')
0 files changed, 0 insertions, 0 deletions