mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
binding/wasm: updated save features
- removed the compression option - added an animation save function.
This commit is contained in:
parent
4bfdac7140
commit
0819fc9058
1 changed files with 2 additions and 2 deletions
|
@ -185,7 +185,7 @@ public:
|
||||||
updated = true;
|
updated = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool save(bool compress)
|
bool save()
|
||||||
{
|
{
|
||||||
errorMsg = NoError;
|
errorMsg = NoError;
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ public:
|
||||||
errorMsg = "duplicate(), fail";
|
errorMsg = "duplicate(), fail";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (saver->save(std::move(duplicate), "output.tvg", compress) != tvg::Result::Success) {
|
if (saver->save(std::move(duplicate), "output.tvg") != tvg::Result::Success) {
|
||||||
errorMsg = "save(), fail";
|
errorMsg = "save(), fail";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue