Page MenuHome

Nla Refactor: is_fcurve_evaluatable()
ClosedPublic

Authored by Wayde Moss (GuiltyGhost) on Dec 1 2020, 12:05 PM.

Diff Detail

Repository
rB Blender
Branch
arcpatch-D9691 (branched from master)
Build Status
Buildable 11847
Build 11847: arc lint + arc unit

Event Timeline

Wayde Moss (GuiltyGhost) requested review of this revision.Dec 1 2020, 12:05 PM
Wayde Moss (GuiltyGhost) created this revision.
Wayde Moss (GuiltyGhost) edited the summary of this revision. (Show Details)Dec 1 2020, 1:14 PM
Christoph Lendenfeld (ChrisLend) requested changes to this revision.Dec 13 2020, 12:09 AM

the same check is also done in nla_eval_domain_action()
Any reason why we can't use the same function there?

This revision now requires changes to proceed.Dec 13 2020, 12:09 AM
  • apply review note: apply is_fcurve_evaluatable() refactor to the rest of anim_sys.c

in that case it looks good to me

This revision is now accepted and ready to land.Dec 22 2020, 9:05 PM

I'm adding Animation & Rigging as blocking reviewer, as per our module-specific review guidelines. Not that important, but it makes it possible to accept a patch on a personal note, without the entire patch going to "ACCEPTED" state immediately.

This revision now requires review to proceed.Jan 8 2021, 2:45 PM

LGTM, just a few tiny nags. Whether you include my way or your way of doing things I'll leave up to you @Wayde Moss (GuiltyGhost). Either way I'll accept the patch.

source/blender/blenkernel/intern/anim_sys.c
370

Superfluous parentheses can be removed around fcu->grp. If you want to make it more explicit, you can also write fcu->grp != NULL.

373–376

This is just return !BKE_fcurve_is_empty(fcu);

This revision is now accepted and ready to land.Jan 8 2021, 2:52 PM
This revision was automatically updated to reflect the committed changes.
Wayde Moss (GuiltyGhost) marked 2 inline comments as done.