Depsgraph: A bit of experiment with skipping where_is_bone if channels is taged as done
This is what old dependency graph was doing and apparently this avoids some updates, however it's not really clear why those nodes are considering done. Maybe just because of the way how relations are working. But needs a closer investigation.
This commit is contained in:
@@ -619,11 +619,13 @@ void BKE_pose_eval_bone(EvaluationContext *UNUSED(eval_ctx),
|
||||
else {
|
||||
/* TODO(sergey): Use time source node for time. */
|
||||
float ctime = BKE_scene_frame_get(scene); /* not accurate... */
|
||||
if ((pchan->flag & POSE_DONE) == 0) {
|
||||
BKE_pose_where_is_bone(scene, ob, pchan, ctime, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void BKE_pose_constraints_evaluate(EvaluationContext *UNUSED(eval_ctx),
|
||||
Object *ob,
|
||||
@@ -636,9 +638,11 @@ void BKE_pose_constraints_evaluate(EvaluationContext *UNUSED(eval_ctx),
|
||||
}
|
||||
else {
|
||||
float ctime = BKE_scene_frame_get(scene); /* not accurate... */
|
||||
if ((pchan->flag & POSE_DONE) == 0) {
|
||||
BKE_pose_where_is_bone(scene, ob, pchan, ctime, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void BKE_pose_bone_done(EvaluationContext *UNUSED(eval_ctx),
|
||||
bPoseChannel *pchan)
|
||||
|
Reference in New Issue
Block a user