From 151f69a5c214691de0665affcd8a49cecd6dd0aa Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 31 May 2019 12:50:15 +0200 Subject: Fix various missing updates in sculpt mode, when changing modifiers and dyntopo This restores the code that updates the sculpt session and PBVH from dependency graph evaluation. --- source/blender/blenkernel/BKE_paint.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'source/blender/blenkernel/BKE_paint.h') diff --git a/source/blender/blenkernel/BKE_paint.h b/source/blender/blenkernel/BKE_paint.h index b92ce8a001f..cf9608e7c0f 100644 --- a/source/blender/blenkernel/BKE_paint.h +++ b/source/blender/blenkernel/BKE_paint.h @@ -292,12 +292,14 @@ void BKE_sculptsession_free_deformMats(struct SculptSession *ss); void BKE_sculptsession_free_vwpaint_data(struct SculptSession *ss); void BKE_sculptsession_bm_to_me(struct Object *ob, bool reorder); void BKE_sculptsession_bm_to_me_for_render(struct Object *object); -void BKE_sculpt_update_mesh_elements(struct Depsgraph *depsgraph, - struct Scene *scene, - struct Sculpt *sd, - struct Object *ob, - bool need_pmap, - bool need_mask); + +void BKE_sculpt_update_object_for_edit(struct Depsgraph *depsgraph, + struct Object *ob_orig, + bool need_pmap, + bool need_mask); +void BKE_sculpt_update_object_before_eval(struct Object *ob_eval); +void BKE_sculpt_update_object_after_eval(struct Depsgraph *depsgraph, struct Object *ob_eval); + struct MultiresModifierData *BKE_sculpt_multires_active(struct Scene *scene, struct Object *ob); int BKE_sculpt_mask_layers_ensure(struct Object *ob, struct MultiresModifierData *mmd); void BKE_sculpt_toolsettings_data_ensure(struct Scene *scene); -- cgit v1.2.3