Changeset View
Changeset View
Standalone View
Standalone View
source/blender/sequencer/intern/image_cache.c
| Show First 20 Lines • Show All 355 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| static void seq_disk_cache_get_project_dir(SeqDiskCache *disk_cache, char *path, size_t path_len) | static void seq_disk_cache_get_project_dir(SeqDiskCache *disk_cache, char *path, size_t path_len) | ||||
| { | { | ||||
| char cache_dir[FILE_MAX]; | char cache_dir[FILE_MAX]; | ||||
| BLI_split_file_part(BKE_main_blendfile_path(disk_cache->bmain), cache_dir, sizeof(cache_dir)); | BLI_split_file_part(BKE_main_blendfile_path(disk_cache->bmain), cache_dir, sizeof(cache_dir)); | ||||
| /* Use suffix, so that the cache directory name does not conflict with the bmain's blend file. */ | /* Use suffix, so that the cache directory name does not conflict with the bmain's blend file. */ | ||||
| const char *suffix = "_seq_cache"; | const char *suffix = "_seq_cache"; | ||||
| strncat(cache_dir, suffix, sizeof(cache_dir) - strlen(cache_dir)); | strncat(cache_dir, suffix, sizeof(cache_dir) - strlen(cache_dir) - 1); | ||||
| BLI_strncpy(path, seq_disk_cache_base_dir(), path_len); | BLI_strncpy(path, seq_disk_cache_base_dir(), path_len); | ||||
| BLI_path_append(path, path_len, cache_dir); | BLI_path_append(path, path_len, cache_dir); | ||||
| } | } | ||||
| static void seq_disk_cache_get_dir( | static void seq_disk_cache_get_dir( | ||||
| SeqDiskCache *disk_cache, Scene *scene, Sequence *seq, char *path, size_t path_len) | SeqDiskCache *disk_cache, Scene *scene, Sequence *seq, char *path, size_t path_len) | ||||
| { | { | ||||
| char scene_name[MAX_ID_NAME + 22]; /* + -%PRId64 */ | char scene_name[MAX_ID_NAME + 22]; /* + -%PRId64 */ | ||||
| ▲ Show 20 Lines • Show All 1,135 Lines • Show Last 20 Lines | |||||