Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-05 13:19:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-05 13:48:25 +0300
commit24bd483ee1551e2fb1dadea9fada98045700b5b2 (patch)
tree819889d748b2df7a8671e81854037ed5709ee6cb /source/blender/editors/sculpt_paint/paint_vertex.c
parent09f780c1b0fe2671b81b048c1e252dc1ea624abb (diff)
Object Modes: Flush COW on mode switching
Caused glitch w/ sculpt mode not updating.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_vertex.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_vertex.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c
index 53b73562322..a6b5ae1af29 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -1108,6 +1108,9 @@ static void ed_vwpaintmode_enter_generic(
}
vertex_paint_init_session(depsgraph, scene, ob);
+
+ /* Flush object mode. */
+ DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE);
}
void ED_object_vpaintmode_enter_ex(
@@ -1189,6 +1192,7 @@ static void ed_vwpaintmode_exit_generic(
ED_mesh_mirror_topo_table(NULL, NULL, 'e');
}
+ /* Flush object mode. */
DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE);
}