diff options
author | Hans Goudey <h.goudey@me.com> | 2022-01-22 01:14:00 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-01-22 01:14:00 +0300 |
commit | d590e223daf6e20d462f2b197d32606d69873051 (patch) | |
tree | ef46b85d1745a8d62dcdb30b637bf0ab36fd44d5 /source/blender/editors/curve | |
parent | 68aa35ae74226fbed936b1879302fc155d9acfac (diff) |
Fix T94974: Invalid normals in edit mode
Normal layers currently aren't stored in the undo step
mesh storage, since they are not stored in files at all.
However, the edit mesh expects normals to be fully
calculated, and does not keep track of a dirty state.
This patch updates the normals in the BMesh created
by loading an undo step.
Another option would be calculating the normals on
the undo mesh first, which might be better if Mesh
normal calculation is faster than BMesh calculation,
but the preferred method to access vertex normals fails
in this case, because the mesh runtime mutexes are not
initialized for undo-state meshes.
Differential Revision: https://developer.blender.org/D13859
Diffstat (limited to 'source/blender/editors/curve')
0 files changed, 0 insertions, 0 deletions