Fix T65505: crash applying modifiers in paint and sculpt modes
We need to find a better solution for mixing normal refreshes in some corner cases. We actually had similar issues in 2.79 anyway, not crashing is more important.
This commit is contained in:
parent
73252d3f60
commit
6c5ef42549
Notes:
blender-bot
2023-02-14 03:21:27 +01:00
Referenced by issue #65505, Crash when apply subsurface modiffier in weight mode
|
@ -992,11 +992,6 @@ static void sculptsession_free_pbvh(Object *object)
|
|||
SculptSession *ss = object->sculpt;
|
||||
|
||||
if (ss && ss->pbvh) {
|
||||
/* Ensure all normals are updated before freeing the PBVH, because
|
||||
* we skip updating them for performance when we don't draw the PBVH. */
|
||||
Mesh *mesh = object->data;
|
||||
BKE_pbvh_update_normals(ss->pbvh, mesh->runtime.subdiv_ccg);
|
||||
|
||||
BKE_pbvh_free(ss->pbvh);
|
||||
ss->pbvh = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue