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-08-23 07:48:50 +0300
committerJoshua Leung <aligorith@gmail.com>2018-08-23 08:07:38 +0300
commit4cbb75935b70cced058434903fc716cedf165371 (patch)
treed9a896f78cacc2fc745b0b279fb52757aac88c01 /source/blender/editors/armature/pose_edit.c
parent8ee06f50c059e23802bde0b9eacf28f3871df79f (diff)
Code Cleanup
Diffstat (limited to 'source/blender/editors/armature/pose_edit.c')
-rw-r--r--source/blender/editors/armature/pose_edit.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/source/blender/editors/armature/pose_edit.c b/source/blender/editors/armature/pose_edit.c
index 2445a3dc062..ca4ea0c5ff9 100644
--- a/source/blender/editors/armature/pose_edit.c
+++ b/source/blender/editors/armature/pose_edit.c
@@ -203,24 +203,21 @@ void ED_pose_recalculate_paths(bContext *C, Scene *scene, Object *ob)
/* Override depsgraph with a filtered, simpler copy */
if (G.debug_value == 555) {
TIMEIT_START(filter_pose_depsgraph);
-
DEG_FilterQuery query = {0};
-
+
DEG_FilterTarget *dft_ob = MEM_callocN(sizeof(DEG_FilterTarget), "DEG_FilterTarget");
dft_ob->id = &ob->id;
BLI_addtail(&query.targets, dft_ob);
-
+
depsgraph = DEG_graph_filter(depsgraph, bmain, &query);
free_depsgraph = true;
-
+
MEM_freeN(dft_ob);
TIMEIT_END(filter_pose_depsgraph);
-
+
TIMEIT_START(filter_pose_update);
BKE_scene_graph_update_tagged(depsgraph, bmain);
TIMEIT_END(filter_pose_update);
-
- //scene = DEG_get_evaluated_scene(depsgraph); /* NOTE: Don't pass in evaluated scene, or else COW will keep overwriting the cfra */
}
/* set flag to force recalc, then grab the relevant bones to target */
@@ -235,7 +232,7 @@ TIMEIT_END(pose_path_calc);
/* tag armature object for copy on write - so paths will draw/redraw */
DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE);
-
+
/* Free temporary depsgraph instance */
if (free_depsgraph) {
DEG_graph_free(depsgraph);