Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/scene.cc
| Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Lines | static void scene_init_data(ID *id) | ||||
| for (size_t i = 0; i < ARRAY_SIZE(scene->orientation_slots); i++) { | for (size_t i = 0; i < ARRAY_SIZE(scene->orientation_slots); i++) { | ||||
| scene->orientation_slots[i].index_custom = -1; | scene->orientation_slots[i].index_custom = -1; | ||||
| } | } | ||||
| /* Master Collection */ | /* Master Collection */ | ||||
| scene->master_collection = BKE_collection_master_add(scene); | scene->master_collection = BKE_collection_master_add(scene); | ||||
| BKE_view_layer_add(scene, "ViewLayer", nullptr, VIEWLAYER_ADD_NEW); | BKE_view_layer_add(scene, DATA_("ViewLayer"), nullptr, VIEWLAYER_ADD_NEW); | ||||
| } | } | ||||
| static void scene_copy_markers(Scene *scene_dst, const Scene *scene_src, const int flag) | static void scene_copy_markers(Scene *scene_dst, const Scene *scene_src, const int flag) | ||||
| { | { | ||||
| BLI_duplicatelist(&scene_dst->markers, &scene_src->markers); | BLI_duplicatelist(&scene_dst->markers, &scene_src->markers); | ||||
| LISTBASE_FOREACH (TimeMarker *, marker, &scene_dst->markers) { | LISTBASE_FOREACH (TimeMarker *, marker, &scene_dst->markers) { | ||||
| if (marker->prop != nullptr) { | if (marker->prop != nullptr) { | ||||
| marker->prop = IDP_CopyProperty_ex(marker->prop, flag); | marker->prop = IDP_CopyProperty_ex(marker->prop, flag); | ||||
| ▲ Show 20 Lines • Show All 3,518 Lines • Show Last 20 Lines | |||||