Refactor: make evaluate_fcurve() take its FCurve as const instead of mutable #121788

Merged
Nathan Vegdahl merged 3 commits from nathanvegdahl/blender:const_fcurve_functions into main 2024-05-16 17:13:53 +02:00

3 Commits

Author SHA1 Message Date
fe7539e304 Change cycle-modifier-is-first check into an assert
All checks were successful
buildbot/vexp-code-patch-lint Build done.
buildbot/vexp-code-patch-linux-x86_64 Build done.
buildbot/vexp-code-patch-darwin-x86_64 Build done.
buildbot/vexp-code-patch-darwin-arm64 Build done.
buildbot/vexp-code-patch-windows-amd64 Build done.
buildbot/vexp-code-patch-coordinator Build done.
2024-05-16 15:21:08 +02:00
aa5637d696 Merge branch 'main' into const_fcurve_functions 2024-05-16 15:15:57 +02:00
faa72df387 Make evaluate_fcurve() take its FCurve as const instead of mutable
This required making a whole bunch of other functions in the call chain
take const parameters as well.  It also required changing some function
pointers in some types to take const parameters, which in turn required
changing all the functions that are pointed to by those function
pointers to take const parameters as well.

All in all, the non-constness was deep and tangled.

There's still a lot more that we can make const, but I wanted to keep
this change as narrow and focused as possible.
2024-05-14 15:31:24 +02:00