Route PPBR export directory policy through platform services
This commit is contained in:
@@ -780,16 +780,14 @@ void NodePanelBrushPreset::add_brush(std::shared_ptr<Brush> brush)
|
||||
|
||||
bool NodePanelBrushPreset::export_ppbr(const std::string& path_in, const PPBRInfo& info_data)
|
||||
{
|
||||
const auto data_directory_policy = App::I->uses_ppbr_export_data_directory_override()
|
||||
? pp::assets::PpbrDataDirectoryPolicy::override_directory
|
||||
: pp::assets::PpbrDataDirectoryPolicy::next_to_package;
|
||||
const auto export_paths = pp::assets::plan_ppbr_export_paths(
|
||||
path_in,
|
||||
info_data.dest_path,
|
||||
info_data.export_data,
|
||||
#if __OSX__
|
||||
pp::assets::PpbrDataDirectoryPolicy::override_directory
|
||||
#else
|
||||
pp::assets::PpbrDataDirectoryPolicy::next_to_package
|
||||
#endif
|
||||
);
|
||||
data_directory_policy);
|
||||
if (!export_paths) {
|
||||
LOG("export_ppbr invalid path: %s", export_paths.status().message);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user