Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/common/IO_path_util.hh
- This file was added.
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | |||||
| #pragma once | |||||
| #include "BLI_string_ref.hh" | |||||
| #include "BLI_set.hh" | |||||
| #include "IO_path_util_types.h" | |||||
| namespace blender::io { | |||||
| /** | |||||
| * Return a filepath relative to a destination directory, for use with | |||||
| * exporters. Equivalent of bpy_extras.io_utils.path_reference. | |||||
howardt: Rather than just referencing the python equivalent, it would be nicer if this comment more… | |||||
aras_pAuthorUnsubmitted Done Inline ActionsGood point, will do aras_p: Good point, will do | |||||
| */ | |||||
| std::string path_reference(StringRefNull filepath, | |||||
| StringRefNull base_src, | |||||
| StringRefNull base_dst, | |||||
| ePathReferenceMode mode, | |||||
| Set<std::pair<std::string, std::string>> *copy_set = nullptr); | |||||
| /** Execute copying files of path_reference. */ | |||||
| void path_reference_copy(const Set<std::pair<std::string, std::string>> ©_set); | |||||
| } // namespace blender::io | |||||
Rather than just referencing the python equivalent, it would be nicer if this comment more explicitly described what this function does. In particular, the purpose of the copy_set argument is not obvious to a casual reader.