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:
parent
e343e4a5ba
commit
fdd999042b
|
@ -619,7 +619,9 @@ 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... */
|
||||
BKE_pose_where_is_bone(scene, ob, pchan, ctime, 1);
|
||||
if ((pchan->flag & POSE_DONE) == 0) {
|
||||
BKE_pose_where_is_bone(scene, ob, pchan, ctime, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -636,7 +638,9 @@ void BKE_pose_constraints_evaluate(EvaluationContext *UNUSED(eval_ctx),
|
|||
}
|
||||
else {
|
||||
float ctime = BKE_scene_frame_get(scene); /* not accurate... */
|
||||
BKE_pose_where_is_bone(scene, ob, pchan, ctime, 1);
|
||||
if ((pchan->flag & POSE_DONE) == 0) {
|
||||
BKE_pose_where_is_bone(scene, ob, pchan, ctime, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue