Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_relations.c
| Show First 20 Lines • Show All 2,016 Lines • ▼ Show 20 Lines | if (!ID_IS_LINKED(ob)) { | ||||
| case OB_POINTCLOUD: | case OB_POINTCLOUD: | ||||
| ob->data = ID_NEW_SET(ob->data, BKE_id_copy(bmain, ob->data)); | ob->data = ID_NEW_SET(ob->data, BKE_id_copy(bmain, ob->data)); | ||||
| break; | break; | ||||
| case OB_VOLUME: | case OB_VOLUME: | ||||
| ob->data = ID_NEW_SET(ob->data, BKE_id_copy(bmain, ob->data)); | ob->data = ID_NEW_SET(ob->data, BKE_id_copy(bmain, ob->data)); | ||||
| break; | 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_msg(0, "This should never happen."); | ||||
| /* We need to end the FOREACH_OBJECT_FLAG_BEGIN iterator to prevent memory leak. */ | /* We need to end the FOREACH_OBJECT_FLAG_BEGIN iterator to prevent memory leak. */ | ||||
| BKE_scene_objects_iterator_end(&iter_macro); | BKE_scene_objects_iterator_end(&iter_macro); | ||||
| return; | return; | ||||
| } | } | ||||
| /* Copy animation data after object data became local, | /* Copy animation data after object data became local, | ||||
| * otherwise old and new object data will share the same | * otherwise old and new object data will share the same | ||||
| ▲ Show 20 Lines • Show All 793 Lines • Show Last 20 Lines | |||||