diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-01 13:06:59 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-01 13:07:38 +0300 |
commit | 314420e19365fee5d6d7ea625ea2063ff467705c (patch) | |
tree | e7d73dbc2916697af1e6f95775df0cdf30d64e37 /source | |
parent | f0982220befeeed19c542795bab0f86fcaa8dd96 (diff) |
Fix crash opening file saved in weight paint mode
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index 68e0f34a685..d5991ac67d4 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -1234,7 +1234,7 @@ static int wpaint_mode_toggle_exec(bContext *C, wmOperator *op) ED_object_wpaintmode_exit_ex(ob); } else { - Depsgraph *depsgraph = CTX_data_depsgraph(C); + Depsgraph *depsgraph = CTX_data_depsgraph_on_load(C); wmWindowManager *wm = CTX_wm_manager(C); ED_object_wpaintmode_enter_ex(depsgraph, wm, scene, ob); } |