Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/lib_id.c
| Show First 20 Lines • Show All 634 Lines • ▼ Show 20 Lines | if (key != NULL) { | ||||
| ID_NEW_SET(key, key_new); | ID_NEW_SET(key, key_new); | ||||
| } | } | ||||
| /* Note: embedded data (root nodetrees and master collections) should never be referenced by | /* Note: embedded data (root nodetrees and master collections) should never be referenced by | ||||
| * anything else, so we do not need to set their newid pointer and flag. */ | * anything else, so we do not need to set their newid pointer and flag. */ | ||||
| BKE_animdata_duplicate_id_action(bmain, id_new, duplicate_flags); | BKE_animdata_duplicate_id_action(bmain, id_new, duplicate_flags); | ||||
| if (key_new != NULL) { | if (key_new != NULL) { | ||||
| BKE_animdata_duplicate_id_action(bmain, id_new, duplicate_flags); | BKE_animdata_duplicate_id_action(bmain, key_new, duplicate_flags); | ||||
| } | } | ||||
| /* Note that actions of embedded data (root nodetrees and master collections) are handled | /* Note that actions of embedded data (root nodetrees and master collections) are handled | ||||
| * by `BKE_animdata_duplicate_id_action` as well. */ | * by `BKE_animdata_duplicate_id_action` as well. */ | ||||
| } | } | ||||
| return id->newid; | return id->newid; | ||||
| } | } | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 1,677 Lines • Show Last 20 Lines | |||||