fix stroke preview zoom, implement dest pick on ppbr export
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user