fix stroke preview zoom, implement dest pick on ppbr export

This commit is contained in:
2019-09-23 22:31:28 +02:00
parent cfdf428a9b
commit 4806a3e8f6
8 changed files with 38 additions and 14 deletions

View File

@@ -698,9 +698,14 @@ bool NodePanelBrushPreset::export_ppbr(const std::string& path_in, const PPBRInf
auto base = m[1].str();
auto name = m[2].str();
auto ext = m[3].str();
std::string out_path = base + "/" + name + "_data";
bool path_created = info_data.export_data ? Asset::create_dir(out_path) : false;
#if __OSX__
std::string out_path = info_data.dest_path + "/" + name + "_data";
#else
std::string out_path = base + "/" + name + "_data";
#endif
bool path_created = info_data.export_data && !out_path.empty() ? Asset::create_dir(out_path) : false;
std::ofstream f(path, std::ios::binary);
if (f.good())