diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-12-11 16:50:03 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-12-11 17:39:43 +0300 |
commit | 54e1d3815762ef964a74f179ef846110673e743f (patch) | |
tree | b971d1955adce21af04d3da50411b33ed07739c2 /source | |
parent | eb83efb6d1bbbde744a35aa56b33473ad6961132 (diff) |
Fix T59001: UV Editor - Crash when hiding all UVs while 3D view is open
and sync selection enabled
Reviewers: brecht
Maniphest Tasks: T59001
Differential Revision: https://developer.blender.org/D4066
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_ops.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c index db8a9986880..54909610850 100644 --- a/source/blender/editors/uvedit/uvedit_ops.c +++ b/source/blender/editors/uvedit/uvedit_ops.c @@ -4105,9 +4105,7 @@ static int uv_hide_exec(bContext *C, wmOperator *op) if (ts->uv_flag & UV_SYNC_SELECTION) { EDBM_mesh_hide(em, swap); - - DEG_id_tag_update(obedit->data, ID_RECALC_SELECT); - WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data); + EDBM_update_generic(em, true, false); return OPERATOR_FINISHED; } @@ -4230,8 +4228,7 @@ static int uv_reveal_exec(bContext *C, wmOperator *op) /* call the mesh function if we are in mesh sync sel */ if (ts->uv_flag & UV_SYNC_SELECTION) { EDBM_mesh_reveal(em, select); - DEG_id_tag_update(obedit->data, ID_RECALC_SELECT); - WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data); + EDBM_update_generic(em, true, false); return OPERATOR_FINISHED; } |