diff options
Diffstat (limited to 'source/blender/editors/object/object_edit.c')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 2131c85ec82..68cdcd4fdeb 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -631,6 +631,7 @@ bool ED_object_editmode_enter(bContext *C, int flag) static int editmode_toggle_exec(bContext *C, wmOperator *op) { + Main *bmain = CTX_data_main(C); const int mode_flag = OB_MODE_EDIT; const bool is_mode_set = (CTX_data_edit_object(C) != NULL); Scene *scene = CTX_data_scene(C); @@ -648,7 +649,7 @@ static int editmode_toggle_exec(bContext *C, wmOperator *op) else { ED_object_editmode_exit(C, EM_FREEDATA | EM_WAITCURSOR); } - ED_space_image_uv_sculpt_update(CTX_wm_manager(C), scene); + ED_space_image_uv_sculpt_update(bmain, CTX_wm_manager(C), scene); return OPERATOR_FINISHED; } |