[Bf-blender-cvs] [1e8021a58af] blender2.8: Fix missing copy-on-write update when changing edit mode selection mode
Dalai Felinto
noreply at git.blender.org
Tue May 1 11:16:24 CEST 2018
Commit: 1e8021a58af3757e8a4c2a543ddab622b75c00d0
Author: Dalai Felinto
Date: Tue May 1 11:15:48 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB1e8021a58af3757e8a4c2a543ddab622b75c00d0
Fix missing copy-on-write update when changing edit mode selection mode
===================================================================
M source/blender/editors/mesh/editmesh_select.c
===================================================================
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c
index 11fb65242f5..2e6c90cacb2 100644
--- a/source/blender/editors/mesh/editmesh_select.c
+++ b/source/blender/editors/mesh/editmesh_select.c
@@ -2314,6 +2314,7 @@ bool EDBM_selectmode_toggle(
bContext *C, const short selectmode_new,
const int action, const bool use_extend, const bool use_expand)
{
+ Scene *scene = CTX_data_scene(C);
ViewLayer *view_layer = CTX_data_view_layer(C);
ToolSettings *ts = CTX_data_tool_settings(C);
Object *obedit = CTX_data_edit_object(C);
@@ -2420,9 +2421,11 @@ bool EDBM_selectmode_toggle(
Object *ob_iter = objects[ob_index];
BMEditMesh *em_iter = BKE_editmesh_from_object(ob_iter);
EDBM_selectmode_set(em_iter);
+ DEG_id_tag_update(ob_iter->data, DEG_TAG_COPY_ON_WRITE);
WM_event_add_notifier(C, NC_GEOM | ND_SELECT, ob_iter->data);
}
WM_main_add_notifier(NC_SCENE | ND_TOOLSETTINGS, NULL);
+ DEG_id_tag_update(&scene->id, DEG_TAG_COPY_ON_WRITE);
}
MEM_SAFE_FREE(objects);
More information about the Bf-blender-cvs
mailing list