Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-18 14:24:34 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-18 14:24:34 +0400
commit11186184aa7af143e72c539be0ed06c3ef37a146 (patch)
tree9be7e1160f0bcf9484526068327e99f237907b41 /source/blender/editors/sculpt_paint
parent8da43c5aaf5a0628da8f1523cc902ab82bdd5e20 (diff)
Fix #35404: crash in file save with python code that accesses mesh from panel.
On file save the mesh gets loads from the editmesh but the derived mesh caches wer not cleared. This usually happens through the depsgraph but it needs to be done manually here. Most changes are some refactoring to deduplicate derived mesh freeing code.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index fce520d04fa..ee10adbf7db 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -4542,7 +4542,7 @@ void sculpt_pbvh_clear(Object *ob)
ss->pbvh = NULL;
if (dm)
dm->getPBVH(NULL, dm);
- BKE_object_free_display(ob);
+ BKE_object_free_derived_caches(ob);
}
void sculpt_update_after_dynamic_topology_toggle(bContext *C)