fix iOS text input and export ppbr
This commit is contained in:
@@ -724,7 +724,7 @@ bool NodePanelBrushPreset::export_ppbr(const std::string& path, const PPBRInfo&
|
||||
info.class_id = "ppbr_info";
|
||||
info.name = L"info header";
|
||||
|
||||
bool has_header_image = info_data.header_image.m_data != nullptr;
|
||||
bool has_header_image = info_data.header_image != nullptr;
|
||||
|
||||
info.props["author"] = std::make_shared<Serializer::String>(info_data.author);
|
||||
info.props["email"] = std::make_shared<Serializer::String>(info_data.email);
|
||||
@@ -743,8 +743,8 @@ bool NodePanelBrushPreset::export_ppbr(const std::string& path, const PPBRInfo&
|
||||
// header image
|
||||
if (has_header_image)
|
||||
{
|
||||
sw << info_data.header_image;
|
||||
info_data.header_image.save_jpg(out_path + "/header.jpg", 75);
|
||||
sw << *info_data.header_image;
|
||||
info_data.header_image->save_jpg(out_path + "/header.jpg", 75);
|
||||
}
|
||||
|
||||
pb->increment();
|
||||
|
||||
Reference in New Issue
Block a user