Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/scene.cc
| Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | static void scene_init_data(ID *id) | ||||
| /* Sequencer */ | /* Sequencer */ | ||||
| scene->toolsettings->sequencer_tool_settings = SEQ_tool_settings_init(); | scene->toolsettings->sequencer_tool_settings = SEQ_tool_settings_init(); | ||||
| 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->master_collection = BKE_collection_master_add(scene); | ||||
| BKE_view_layer_add(scene, "ViewLayer", nullptr, VIEWLAYER_ADD_NEW); | BKE_view_layer_add(scene, "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) { | ||||
| ▲ Show 20 Lines • Show All 3,464 Lines • Show Last 20 Lines | |||||