diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-06-11 19:56:01 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-06-11 19:58:21 +0300 |
commit | 4ffd153dbf919b40c4b6513c8de2a10dbe9291f6 (patch) | |
tree | 59b999b1b783342b19374c66e9ab9c7cf86e7b60 /source | |
parent | 3df809958b785b91a7bf3c3e3d007fb91ea5804b (diff) |
Fix crash when doing Sculpt->Edit->Sculpt switch.
We actually get fully rid of BKE_object_free_derived_mesh_caches usages,
now always using BKE_object_free_derived_caches (bad name, btw, should
be 'evaluated_caches ;) )...
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 1c76f20d45c..f3fe04f7714 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -5666,7 +5666,7 @@ void ED_object_sculptmode_enter_ex( /* Make sure derived final from original object does not reference possibly * freed memory. */ - BKE_object_free_derived_mesh_caches(ob); + BKE_object_free_derived_caches(ob); sculpt_init_session(depsgraph, scene, ob); @@ -5796,7 +5796,7 @@ void ED_object_sculptmode_exit_ex( paint_cursor_delete_textures(); /* Never leave derived meshes behind. */ - BKE_object_free_derived_mesh_caches(ob); + BKE_object_free_derived_caches(ob); /* Flush object mode. */ DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE); |