Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
| Show First 20 Lines • Show All 301 Lines • ▼ Show 20 Lines | #endif | ||||
| return result; | return result; | ||||
| } | } | ||||
| /* Similar to BKE_scene_copy() but does not require main and assumes pointer | /* Similar to BKE_scene_copy() but does not require main and assumes pointer | ||||
| * is already allocated. */ | * is already allocated. */ | ||||
| bool scene_copy_inplace_no_main(const Scene *scene, Scene *new_scene) | bool scene_copy_inplace_no_main(const Scene *scene, Scene *new_scene) | ||||
| { | { | ||||
| #if 0 | |||||
| if (G.debug & G_DEBUG_DEPSGRAPH_UUID) { | if (G.debug & G_DEBUG_DEPSGRAPH_UUID) { | ||||
| SEQ_relations_check_uuids_unique_and_report(scene); | SEQ_relations_check_uuids_unique_and_report(scene); | ||||
| } | } | ||||
| #endif | |||||
| #ifdef NESTED_ID_NASTY_WORKAROUND | #ifdef NESTED_ID_NASTY_WORKAROUND | ||||
| NestedIDHackTempStorage id_hack_storage; | NestedIDHackTempStorage id_hack_storage; | ||||
| const ID *id_for_copy = nested_id_hack_get_discarded_pointers(&id_hack_storage, &scene->id); | const ID *id_for_copy = nested_id_hack_get_discarded_pointers(&id_hack_storage, &scene->id); | ||||
| #else | #else | ||||
| const ID *id_for_copy = &scene->id; | const ID *id_for_copy = &scene->id; | ||||
| #endif | #endif | ||||
| bool result = (BKE_id_copy_ex(nullptr, | bool result = (BKE_id_copy_ex(nullptr, | ||||
| ▲ Show 20 Lines • Show All 761 Lines • Show Last 20 Lines | |||||