Depsgraph: Add evaluation callbacks for granular nodes update
This commit only adds callbacks which then later be used with major dependency graph commit, keeping the upcoming commit more clean to follow. Should be no functional changes so far still.
This commit is contained in:
@@ -4563,3 +4563,27 @@ void BKE_curve_rect_from_textbox(const struct Curve *cu, const struct TextBox *t
|
||||
r_rect->xmax = r_rect->xmin + tb->w;
|
||||
r_rect->ymin = r_rect->ymax - tb->h;
|
||||
}
|
||||
|
||||
/* **** Depsgraph evaluation **** */
|
||||
|
||||
void BKE_curve_eval_geometry(EvaluationContext *UNUSED(eval_ctx),
|
||||
Curve *curve)
|
||||
{
|
||||
if (G.debug & G_DEBUG_DEPSGRAPH) {
|
||||
printf("%s on %s\n", __func__, curve->id.name);
|
||||
}
|
||||
if (curve->bb == NULL || (curve->bb->flag & BOUNDBOX_DIRTY)) {
|
||||
BKE_curve_texspace_calc(curve);
|
||||
}
|
||||
}
|
||||
|
||||
void BKE_curve_eval_path(EvaluationContext *UNUSED(eval_ctx),
|
||||
Curve *curve)
|
||||
{
|
||||
/* TODO(sergey): This will probably need to be a part of
|
||||
* the modifier stack still.
|
||||
*/
|
||||
if (G.debug & G_DEBUG_DEPSGRAPH) {
|
||||
printf("%s on %s\n", __func__, curve->id.name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user