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
This commit is contained in:
parent
eb83efb6d1
commit
54e1d38157
Notes:
blender-bot
2023-02-14 04:37:00 +01:00
Referenced by issue #59001, UV Editor - Crash when hiding all UVs while 3D view is open and sync selection enabled
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue