Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/scene.c
| Show First 20 Lines • Show All 1,683 Lines • ▼ Show 20 Lines | if (scene_new->toolsettings != NULL && scene_old->toolsettings != NULL) { | ||||
| * palettes), and counteract the swap of the whole ToolSettings structs below for the others | * palettes), and counteract the swap of the whole ToolSettings structs below for the others | ||||
| * (like object ones). */ | * (like object ones). */ | ||||
| scene_foreach_toolsettings( | scene_foreach_toolsettings( | ||||
| NULL, scene_new->toolsettings, true, reader, scene_old->toolsettings); | NULL, scene_new->toolsettings, true, reader, scene_old->toolsettings); | ||||
| SWAP(ToolSettings, *scene_old->toolsettings, *scene_new->toolsettings); | SWAP(ToolSettings, *scene_old->toolsettings, *scene_new->toolsettings); | ||||
| } | } | ||||
| } | } | ||||
| static void scene_lib_override_apply_post(ID *id_dst, ID *UNUSED(id_src)) | |||||
| { | |||||
| Scene *scene = (Scene *)id_dst; | |||||
| if (scene->rigidbody_world != NULL) { | |||||
| PTCacheID pid; | |||||
| BKE_ptcache_id_from_rigidbody(&pid, NULL, scene->rigidbody_world); | |||||
| LISTBASE_FOREACH (PointCache *, point_cache, pid.ptcaches) { | |||||
| point_cache->flag |= PTCACHE_FLAG_INFO_DIRTY; | |||||
| } | |||||
| } | |||||
| } | |||||
| IDTypeInfo IDType_ID_SCE = { | IDTypeInfo IDType_ID_SCE = { | ||||
| .id_code = ID_SCE, | .id_code = ID_SCE, | ||||
| .id_filter = FILTER_ID_SCE, | .id_filter = FILTER_ID_SCE, | ||||
| .main_listbase_index = INDEX_ID_SCE, | .main_listbase_index = INDEX_ID_SCE, | ||||
| .struct_size = sizeof(Scene), | .struct_size = sizeof(Scene), | ||||
| .name = "Scene", | .name = "Scene", | ||||
| .name_plural = "scenes", | .name_plural = "scenes", | ||||
| .translation_context = BLT_I18NCONTEXT_ID_SCENE, | .translation_context = BLT_I18NCONTEXT_ID_SCENE, | ||||
| Show All 9 Lines | IDTypeInfo IDType_ID_SCE = { | ||||
| .foreach_cache = scene_foreach_cache, | .foreach_cache = scene_foreach_cache, | ||||
| .blend_write = scene_blend_write, | .blend_write = scene_blend_write, | ||||
| .blend_read_data = scene_blend_read_data, | .blend_read_data = scene_blend_read_data, | ||||
| .blend_read_lib = scene_blend_read_lib, | .blend_read_lib = scene_blend_read_lib, | ||||
| .blend_read_expand = scene_blend_read_expand, | .blend_read_expand = scene_blend_read_expand, | ||||
| .blend_read_undo_preserve = scene_undo_preserve, | .blend_read_undo_preserve = scene_undo_preserve, | ||||
| .lib_override_apply_post = scene_lib_override_apply_post, | |||||
| }; | }; | ||||
| const char *RE_engine_id_BLENDER_EEVEE = "BLENDER_EEVEE"; | const char *RE_engine_id_BLENDER_EEVEE = "BLENDER_EEVEE"; | ||||
| const char *RE_engine_id_BLENDER_WORKBENCH = "BLENDER_WORKBENCH"; | const char *RE_engine_id_BLENDER_WORKBENCH = "BLENDER_WORKBENCH"; | ||||
| const char *RE_engine_id_CYCLES = "CYCLES"; | const char *RE_engine_id_CYCLES = "CYCLES"; | ||||
| void free_avicodecdata(AviCodecData *acd) | void free_avicodecdata(AviCodecData *acd) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 2,044 Lines • Show Last 20 Lines | |||||