Animation: Fix MSVC warning about C incompatibility of `AnimationEvalContext`

Thanks @JacquesLucke for pointing this out.

No functional changes.
This commit is contained in:
Sybren A. Stüvel 2020-07-20 13:13:57 +02:00
parent 579b180053
commit 33ad95b677
1 changed files with 2 additions and 2 deletions

View File

@ -52,12 +52,12 @@ struct bContext;
typedef struct AnimationEvalContext {
/* For drivers, so that they have access to the dependency graph and the current view layer. See
* T77086. */
struct Depsgraph *const depsgraph;
struct Depsgraph *depsgraph;
/* FCurves and Drivers can be evaluated at a different time than the current scene time, for
* example when evaluating NLA strips. This means that, even though the current time is stored in
* the dependency graph, we need an explicit evaluation time. */
const float eval_time;
float eval_time;
} AnimationEvalContext;
AnimationEvalContext BKE_animsys_eval_context_construct(struct Depsgraph *depsgraph,