|
Blender V5.0
|
#include <rna_internal_types.hh>
Public Attributes | |
| PropertyRNAOrID * | prop_a = nullptr |
| PropertyRNAOrID * | prop_b = nullptr |
| eRNACompareMode | mode = RNA_EQ_COMPARE |
| IDOverrideLibrary * | liboverride = nullptr |
| const char * | rna_path = nullptr |
| size_t | rna_path_len = 0 |
| eRNAOverrideMatch | liboverride_flags = eRNAOverrideMatch(0) |
| int | comparison = 0 |
| eRNAOverrideMatchResult | report_flag = eRNAOverrideMatchResult(0) |
If liboverride is NULL, merely do comparison between prop_a and prop_b, following comparison mode given. If liboverride and rna_path are not NULL, it will add a new override operation for overridable properties that differ and have not yet been overridden (and set accordingly r_override_changed if given).
Definition at line 227 of file rna_internal_types.hh.
| int RNAPropertyOverrideDiffContext::comparison = 0 |
Results. 0 is matching, -1 if prop_a < prop_b, 1 if prop_a > prop_b. Note that for unquantifiable properties (e.g. pointers or collections), return value should be interpreted as a boolean (false == matching, true == not matching).
Definition at line 256 of file rna_internal_types.hh.
Referenced by rna_property_override_diff().
| IDOverrideLibrary* RNAPropertyOverrideDiffContext::liboverride = nullptr |
LibOverride specific parameters.
Definition at line 244 of file rna_internal_types.hh.
Referenced by rna_property_override_diff().
| eRNAOverrideMatch RNAPropertyOverrideDiffContext::liboverride_flags = eRNAOverrideMatch(0) |
Definition at line 247 of file rna_internal_types.hh.
Referenced by rna_property_override_diff().
| eRNACompareMode RNAPropertyOverrideDiffContext::mode = RNA_EQ_COMPARE |
Definition at line 241 of file rna_internal_types.hh.
Referenced by rna_property_override_diff().
| PropertyRNAOrID* RNAPropertyOverrideDiffContext::prop_a = nullptr |
General diffing parameters. Using PropertyRNAOrID for properties info here allows to cover all three cases (real RNA properties, runtime RNA properties created from Python and stored in ID-properties, and pure ID-properties).
This is necessary, because we cannot perform 'set/unset' checks on resolved properties (unset ID-properties would merely be nullptr then).
Definition at line 238 of file rna_internal_types.hh.
Referenced by rna_property_override_diff().
| PropertyRNAOrID* RNAPropertyOverrideDiffContext::prop_b = nullptr |
Definition at line 239 of file rna_internal_types.hh.
Referenced by rna_property_override_diff().
| eRNAOverrideMatchResult RNAPropertyOverrideDiffContext::report_flag = eRNAOverrideMatchResult(0) |
Additional flags reporting potential actions taken by the function (e.g. resetting forbidden overrides to their reference value).
Definition at line 261 of file rna_internal_types.hh.
Referenced by rna_property_override_diff().
| const char* RNAPropertyOverrideDiffContext::rna_path = nullptr |
Definition at line 245 of file rna_internal_types.hh.
Referenced by rna_property_override_diff().
| size_t RNAPropertyOverrideDiffContext::rna_path_len = 0 |
Definition at line 246 of file rna_internal_types.hh.
Referenced by rna_property_override_diff().