Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_rna.c
| Show First 20 Lines • Show All 1,910 Lines • ▼ Show 20 Lines | # endif | ||||
| /* Differences we cannot handle, we can break here. */ | /* Differences we cannot handle, we can break here. */ | ||||
| equals = false; | equals = false; | ||||
| abort = true; | abort = true; | ||||
| break; | break; | ||||
| } | } | ||||
| /* Collections do not support replacement of their data (except for collections of ID | /* Collections do not support replacement of their data (except for collections of ID | ||||
| * pointers), since they do not support removing, only in *some* cases, insertion. We | * pointers), since they do not support removing, only in *some* cases, insertion. We | ||||
| * also assume then that _a data is the one where things are inserted. */ | * also assume then that _a data is the one where things are inserted. | ||||
| * | |||||
| * NOTE: In insertion case, both 'local' and 'reference' (aka anchor) sub-item | |||||
| * identifiers refer to collection items in the local override. The 'reference' may match | |||||
| * an item in the linked reference data, but it can also be another local-only item added | |||||
| * by a previous INSERT operation. */ | |||||
| if (is_valid_for_insertion && use_collection_insertion) { | if (is_valid_for_insertion && use_collection_insertion) { | ||||
| op = BKE_lib_override_library_property_get(override, rna_path, &created); | op = BKE_lib_override_library_property_get(override, rna_path, &created); | ||||
| BKE_lib_override_library_property_operation_get(op, | BKE_lib_override_library_property_operation_get(op, | ||||
| IDOVERRIDE_LIBRARY_OP_INSERT_AFTER, | IDOVERRIDE_LIBRARY_OP_INSERT_AFTER, | ||||
| NULL, | |||||
| no_prop_name ? NULL : prev_propname_a, | no_prop_name ? NULL : prev_propname_a, | ||||
| -1, | no_prop_name ? NULL : propname_a, | ||||
| idx_a - 1, | idx_a - 1, | ||||
| idx_a, | |||||
| true, | true, | ||||
| NULL, | NULL, | ||||
| NULL); | NULL); | ||||
| # if 0 | # if 0 | ||||
| printf("%s: Adding insertion op override after '%s'/%d\n", | printf("%s: Adding insertion op override after '%s'/%d\n", | ||||
| rna_path, | rna_path, | ||||
| prev_propname_a, | prev_propname_a, | ||||
| idx_a - 1); | idx_a - 1); | ||||
| ▲ Show 20 Lines • Show All 1,396 Lines • Show Last 20 Lines | |||||