diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-05-12 11:13:36 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-05-12 14:06:36 +0300 |
commit | 87fd1666542adf1507d78bf96574fd56a8be3af8 (patch) | |
tree | feabc4af67e4edd813f1f68b4eace8ae7e968e2f /source/blender/blenkernel/intern/action.c | |
parent | dbbe721c2afda4a3b5c8ea7e60cf3f2b011cc857 (diff) |
Depsgraph: Add utility function to tag pose for recalc
Currently this function only tags pose itself, totally matching previous
behavior. But this will be needed in the future once new dependency graph
is landed, because of it's granular nature which relies on the fact that
pose channels are all up to date when building the graph.
Should be no functional changes so far.
Diffstat (limited to 'source/blender/blenkernel/intern/action.c')
-rw-r--r-- | source/blender/blenkernel/intern/action.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c index 9ce198bd687..708c64f8ffc 100644 --- a/source/blender/blenkernel/intern/action.c +++ b/source/blender/blenkernel/intern/action.c @@ -1317,6 +1317,12 @@ bool BKE_pose_copy_result(bPose *to, bPose *from) return true; } +/* Tag pose for recalc. Also tag all related data to be recalc. */ +void BKE_pose_tag_recalc(Main *UNUSED(bmain), bPose *pose) +{ + pose->flag |= POSE_RECALC; +} + /* For the calculation of the effects of an Action at the given frame on an object * This is currently only used for the Action Constraint */ |