Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_relations.c
| Context not available. | |||||
| #include "BKE_DerivedMesh.h" | #include "BKE_DerivedMesh.h" | ||||
| #include "BKE_displist.h" | #include "BKE_displist.h" | ||||
| #include "BKE_global.h" | #include "BKE_global.h" | ||||
| #include "BKE_gpencil.h" | |||||
| #include "BKE_group.h" | #include "BKE_group.h" | ||||
| #include "BKE_fcurve.h" | #include "BKE_fcurve.h" | ||||
| #include "BKE_idprop.h" | #include "BKE_idprop.h" | ||||
| Context not available. | |||||
| /* group pointers in scene */ | /* group pointers in scene */ | ||||
| BKE_scene_groups_relink(scene); | BKE_scene_groups_relink(scene); | ||||
| /* active camera */ | |||||
| ID_NEW_REMAP(scene->camera); | ID_NEW_REMAP(scene->camera); | ||||
| if (v3d) ID_NEW_REMAP(v3d->camera); | if (v3d) ID_NEW_REMAP(v3d->camera); | ||||
| /* gp_object */ | |||||
| ID_NEW_REMAP(scene->gp_object); | |||||
| /* object and group pointers */ | /* object and group pointers */ | ||||
| libblock_relink_scene_collection(msc); | libblock_relink_scene_collection(msc); | ||||
| Context not available. | |||||
| case OB_LIGHTPROBE: | case OB_LIGHTPROBE: | ||||
| ob->data = ID_NEW_SET(ob->data, BKE_lightprobe_copy(bmain, ob->data)); | ob->data = ID_NEW_SET(ob->data, BKE_lightprobe_copy(bmain, ob->data)); | ||||
| break; | break; | ||||
| case OB_GPENCIL: | |||||
| ob->data = ID_NEW_SET(ob->data, BKE_gpencil_copy(bmain, ob->data)); | |||||
| break; | |||||
| default: | default: | ||||
| printf("ERROR %s: can't copy %s\n", __func__, id->name); | printf("ERROR %s: can't copy %s\n", __func__, id->name); | ||||
| BLI_assert(!"This should never happen."); | BLI_assert(!"This should never happen."); | ||||
| Context not available. | |||||