[Bf-blender-cvs] [314420e1936] blender2.8: Fix crash opening file saved in weight paint mode

Sergey Sharybin noreply at git.blender.org
Tue May 1 12:07:49 CEST 2018


Commit: 314420e19365fee5d6d7ea625ea2063ff467705c
Author: Sergey Sharybin
Date:   Tue May 1 12:06:59 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB314420e19365fee5d6d7ea625ea2063ff467705c

Fix crash opening file saved in weight paint mode

===================================================================

M	source/blender/editors/sculpt_paint/paint_vertex.c

===================================================================

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);
 	}



More information about the Bf-blender-cvs mailing list