[Bf-blender-cvs] [54e1d381576] blender2.8: Fix T59001: UV Editor - Crash when hiding all UVs while 3D view is open and sync selection enabled
Philipp Oeser
noreply at git.blender.org
Tue Dec 11 15:41:16 CET 2018
Commit: 54e1d3815762ef964a74f179ef846110673e743f
Author: Philipp Oeser
Date: Tue Dec 11 14:50:03 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB54e1d3815762ef964a74f179ef846110673e743f
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
===================================================================
M source/blender/editors/uvedit/uvedit_ops.c
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list