Blender V4.3
BKE_bake_items_paths.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include <optional>
8#include <string>
9
10#include "BLI_string_ref.hh"
11#include "BLI_sub_frame.hh"
12#include "BLI_vector.hh"
13
14namespace blender::bke::bake {
15
16struct MetaFile {
18 std::string path;
19};
20
21struct BakePath {
23 std::string meta_dir;
28 std::string blobs_dir;
33 std::optional<std::string> bake_dir;
34
36};
37
38std::string frame_to_file_name(const SubFrame &frame);
39std::optional<SubFrame> file_name_to_frame(const StringRef file_name);
40
42
43} // namespace blender::bke::bake
std::optional< SubFrame > file_name_to_frame(const StringRef file_name)
Vector< MetaFile > find_sorted_meta_files(const StringRefNull meta_dir)
std::string frame_to_file_name(const SubFrame &frame)
static BakePath from_single_root(StringRefNull root_dir)
std::optional< std::string > bake_dir