diff options
author | Joshua Leung <aligorith@gmail.com> | 2018-07-31 16:27:47 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2018-07-31 17:18:54 +0300 |
commit | 4684375bd45f7c6bebcfd5006a8bc86e777f971e (patch) | |
tree | 0aed4b28b3099f284adfadf80f8ea77fb483b24b /source/blender/editors/object | |
parent | d803b4e43b11bffc819d130c811f0e6f03195d57 (diff) |
Fix: Motion Paths were still visible after clearing them
After clearing motion paths from objects, those objects needed to be
tagged for copy on write so that the copied data (i.e. viewport)
recieve the changes (i.e. removed paths)
Reported by Hjalti
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 48048319cb7..a6dad906579 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -1378,6 +1378,9 @@ static void object_clear_mpath(Object *ob) animviz_free_motionpath(ob->mpath); ob->mpath = NULL; ob->avs.path_bakeflag &= ~MOTIONPATH_BAKE_HAS_PATHS; + + /* tag object for copy on write - so removed paths don't still show */ + DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE); } } |