Blender V4.3
RNAPropertyOverrideDiffContext Struct Reference

#include <rna_internal_types.hh>

Public Attributes

PropertyRNAOrIDprop_a = nullptr
 
PropertyRNAOrIDprop_b = nullptr
 
eRNACompareMode mode = RNA_EQ_COMPARE
 
IDOverrideLibraryliboverride = 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)
 

Detailed Description

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).

Note
liboverride and rna_path may be NULL pointers.

Definition at line 195 of file rna_internal_types.hh.

Member Data Documentation

◆ comparison

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 220 of file rna_internal_types.hh.

Referenced by rna_property_override_diff().

◆ liboverride

IDOverrideLibrary* RNAPropertyOverrideDiffContext::liboverride = nullptr

LibOverride specific parameters.

Definition at line 210 of file rna_internal_types.hh.

Referenced by rna_property_override_diff().

◆ liboverride_flags

eRNAOverrideMatch RNAPropertyOverrideDiffContext::liboverride_flags = eRNAOverrideMatch(0)

Definition at line 213 of file rna_internal_types.hh.

Referenced by rna_property_override_diff().

◆ mode

eRNACompareMode RNAPropertyOverrideDiffContext::mode = RNA_EQ_COMPARE

Definition at line 207 of file rna_internal_types.hh.

Referenced by rna_property_override_diff().

◆ prop_a

PropertyRNAOrID* RNAPropertyOverrideDiffContext::prop_a = nullptr

General diffing parameters.

Definition at line 204 of file rna_internal_types.hh.

Referenced by rna_property_override_diff().

◆ prop_b

PropertyRNAOrID* RNAPropertyOverrideDiffContext::prop_b = nullptr

Definition at line 205 of file rna_internal_types.hh.

Referenced by rna_property_override_diff().

◆ report_flag

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 223 of file rna_internal_types.hh.

Referenced by rna_property_override_diff().

◆ rna_path

const char* RNAPropertyOverrideDiffContext::rna_path = nullptr

Definition at line 211 of file rna_internal_types.hh.

Referenced by rna_property_override_diff().

◆ rna_path_len

size_t RNAPropertyOverrideDiffContext::rna_path_len = 0

Definition at line 212 of file rna_internal_types.hh.

Referenced by rna_property_override_diff().


The documentation for this struct was generated from the following file: