Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_access_compare_override.c
| Show All 36 Lines | |||||
| //#define DEBUG_OVERRIDE_TIMEIT | //#define DEBUG_OVERRIDE_TIMEIT | ||||
| #ifdef DEBUG_OVERRIDE_TIMEIT | #ifdef DEBUG_OVERRIDE_TIMEIT | ||||
| # include "PIL_time_utildefines.h" | # include "PIL_time_utildefines.h" | ||||
| #endif | #endif | ||||
| #include "BKE_armature.h" | #include "BKE_armature.h" | ||||
| #include "BKE_idprop.h" | #include "BKE_idprop.h" | ||||
| #include "BKE_idtype.h" | |||||
| #include "BKE_lib_override.h" | #include "BKE_lib_override.h" | ||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "RNA_define.h" | #include "RNA_define.h" | ||||
| #include "RNA_enum_types.h" | #include "RNA_enum_types.h" | ||||
| #include "rna_access_internal.h" | #include "rna_access_internal.h" | ||||
| ▲ Show 20 Lines • Show All 1,120 Lines • ▼ Show 20 Lines | #ifndef NDEBUG | ||||
| ((ID *)ptr_src->owner_id)->name, | ((ID *)ptr_src->owner_id)->name, | ||||
| op->rna_path, | op->rna_path, | ||||
| RNA_path_resolve_property(ptr_dst, op->rna_path, &data_dst, &prop_dst), | RNA_path_resolve_property(ptr_dst, op->rna_path, &data_dst, &prop_dst), | ||||
| RNA_path_resolve_property(ptr_src, op->rna_path, &data_src, &prop_src)); | RNA_path_resolve_property(ptr_src, op->rna_path, &data_src, &prop_src)); | ||||
| } | } | ||||
| #endif | #endif | ||||
| } | } | ||||
| } | } | ||||
| /* Some cases (like point caches) may require additional post-processing. */ | |||||
| if (RNA_struct_is_a(ptr_dst->type, &RNA_ID)) { | |||||
| ID *id_dst = ptr_dst->data; | |||||
| ID *id_src = ptr_src->data; | |||||
| const IDTypeInfo *id_type = BKE_idtype_get_info_from_id(id_dst); | |||||
| if (id_type->lib_override_apply_post != NULL) { | |||||
| id_type->lib_override_apply_post(id_dst, id_src); | |||||
| } | |||||
| } | |||||
| #ifdef DEBUG_OVERRIDE_TIMEIT | #ifdef DEBUG_OVERRIDE_TIMEIT | ||||
| TIMEIT_END_AVERAGED(RNA_struct_override_apply); | TIMEIT_END_AVERAGED(RNA_struct_override_apply); | ||||
| #endif | #endif | ||||
| } | } | ||||
| IDOverrideLibraryProperty *RNA_property_override_property_find(Main *bmain, | IDOverrideLibraryProperty *RNA_property_override_property_find(Main *bmain, | ||||
| PointerRNA *ptr, | PointerRNA *ptr, | ||||
| PropertyRNA *prop, | PropertyRNA *prop, | ||||
| ▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines | |||||