Page MenuHome

WIP: Small refactor of some of the RNA diffing API.
ClosedPublic

Authored by Bastien Montagne (mont29) on Dec 13 2022, 1:30 PM.

Details

Summary

Propagate eRNAOverrideMatchResult 'return' flags at higher level into
BKE API, instead of just returning a boolean true when new override
rules have been created.

NOTE: This is an intermediary step towards fixing T102766.

Diff Detail

Repository
rB Blender
Branch
tmp-liboverride-refactor (branched from master)
Build Status
Buildable 25043
Build 25043: arc lint + arc unit

Event Timeline

Bastien Montagne (mont29) requested review of this revision.Dec 13 2022, 1:30 PM
Bastien Montagne (mont29) created this revision.

In C++ it's possible to forward declare enums when specifying the data type, like enum eRNAOverrideMatchResult : unsigned int.

However in C the only solution is to just use int or to add includes in headers to define the enum.

Updating, fixing weird memory corruptions by enforcing int type for the enum.

Thanks @Brecht Van Lommel (brecht), just wanted to be sure I was not missing anything here.

Patch is now ready, not sure if you guys want/need to review it though.

Bastien Montagne (mont29) edited the summary of this revision. (Show Details)

Rebase on master and minor cleanup before commit.

This revision was not accepted when it landed; it landed in state Needs Review.Dec 21 2022, 7:03 AM
This revision was automatically updated to reflect the committed changes.