diff options
author | Hans Goudey <h.goudey@me.com> | 2022-02-24 19:56:11 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-02-24 19:56:32 +0300 |
commit | 7b37d980b97fd6f2fde7561c5f2a881f46db2c1f (patch) | |
tree | f3af8379ecf446087a1429563e7e98d45e7006d1 /intern | |
parent | f8507ca3720e6bcec934d01ef3af129e9bf1d3a8 (diff) |
Fix: Crash switching between sculpt and edit mode
Also fix a couple other places where normals layers weren't properly
tagged dirty or reallocated when the mesh changes.
Caused by cfa53e0fbeed7178. When the size of a mesh changes,
the normal layers need to be reallocated. There were a couple of places
that cleared other runtime data with `BKE_mesh_runtime_clear_geometry`
but didn't deal with normals properly. Clearing the runtime "geometry"
is different from clearing the normals, because sometimes the size of
the normal layers doesn't have to change, in which case simply tagging
them dirty is fine.
Diffstat (limited to 'intern')
0 files changed, 0 insertions, 0 deletions