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:
authorJoshua Leung <aligorith@gmail.com>2018-07-31 16:27:47 +0300
committerJoshua Leung <aligorith@gmail.com>2018-07-31 17:18:54 +0300
commit4684375bd45f7c6bebcfd5006a8bc86e777f971e (patch)
tree0aed4b28b3099f284adfadf80f8ea77fb483b24b
parentd803b4e43b11bffc819d130c811f0e6f03195d57 (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
-rw-r--r--source/blender/editors/armature/pose_edit.c3
-rw-r--r--source/blender/editors/object/object_edit.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/armature/pose_edit.c b/source/blender/editors/armature/pose_edit.c
index 3ae578279ca..1dfb9ec984a 100644
--- a/source/blender/editors/armature/pose_edit.c
+++ b/source/blender/editors/armature/pose_edit.c
@@ -365,6 +365,9 @@ static void ED_pose_clear_paths(Object *ob, bool only_selected)
/* if nothing was skipped, there should be no paths left! */
if (skipped == false)
ob->pose->avs.path_bakeflag &= ~MOTIONPATH_BAKE_HAS_PATHS;
+
+ /* tag armature object for copy on write - so removed paths don't still show */
+ DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE);
}
/* operator callback - wrapper for the backend function */
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);
}
}