diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-06 19:44:03 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-06 19:48:37 +0300 |
commit | 6c5ef4254981c899f6916da15a7b9a7af2e8310d (patch) | |
tree | c48eb313f82187ff939500f5fd8e9aabf6d7ab9a /source/blender/blenkernel/intern/paint.c | |
parent | 73252d3f60053bc3f949abaa08a5eb37fcd227a2 (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel/intern/paint.c')
-rw-r--r-- | source/blender/blenkernel/intern/paint.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c index f1f49070f1d..99ae19c3c30 100644 --- a/source/blender/blenkernel/intern/paint.c +++ b/source/blender/blenkernel/intern/paint.c @@ -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; } |