Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_access_compare_override.c
| Show First 20 Lines • Show All 608 Lines • ▼ Show 20 Lines | static bool rna_property_override_operation_apply(Main *bmain, | ||||
| if (len_dst != len_src || (ptr_storage && len_dst != len_storage)) { | if (len_dst != len_src || (ptr_storage && len_dst != len_storage)) { | ||||
| /* Do not handle override in that case, | /* Do not handle override in that case, | ||||
| * we do not support insertion/deletion from arrays for now. */ | * we do not support insertion/deletion from arrays for now. */ | ||||
| return false; | return false; | ||||
| } | } | ||||
| /* get and set the default values as appropriate for the various types */ | /* get and set the default values as appropriate for the various types */ | ||||
| const bool sucess = override_apply(bmain, | const bool success = override_apply(bmain, | ||||
| ptr_dst, | ptr_dst, | ||||
| ptr_src, | ptr_src, | ||||
| ptr_storage, | ptr_storage, | ||||
| prop_dst, | prop_dst, | ||||
| prop_src, | prop_src, | ||||
| prop_storage, | prop_storage, | ||||
| len_dst, | len_dst, | ||||
| len_src, | len_src, | ||||
| len_storage, | len_storage, | ||||
| ptr_item_dst, | ptr_item_dst, | ||||
| ptr_item_src, | ptr_item_src, | ||||
| ptr_item_storage, | ptr_item_storage, | ||||
| opop); | opop); | ||||
| if (sucess) { | if (success) { | ||||
| RNA_property_update_main(bmain, NULL, ptr_dst, prop_dst); | RNA_property_update_main(bmain, NULL, ptr_dst, prop_dst); | ||||
| } | } | ||||
| return sucess; | return success; | ||||
| } | } | ||||
| /** | /** | ||||
| * Check whether reference and local overridden data match (are the same), | * Check whether reference and local overridden data match (are the same), | ||||
| * with respect to given restrictive sets of properties. | * with respect to given restrictive sets of properties. | ||||
| * If requested, will generate needed new property overrides, and/or restore values from reference. | * If requested, will generate needed new property overrides, and/or restore values from reference. | ||||
| * | * | ||||
| * \param r_report_flags: If given, | * \param r_report_flags: If given, | ||||
| ▲ Show 20 Lines • Show All 829 Lines • Show Last 20 Lines | |||||