mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-05 18:40:37 +00:00
In this way we don't modify the current exported JSONs by users that are not using cel opacity (which might be the most common case).
This commit is contained in:
parent
a11946ab0e
commit
4e5dfa9d2c
@ -1570,7 +1570,9 @@ void DocExporter::createDataFile(const Samples& samples,
|
|||||||
os << ", ";
|
os << ", ";
|
||||||
|
|
||||||
os << "{ \"frame\": " << cel->frame();
|
os << "{ \"frame\": " << cel->frame();
|
||||||
os << ", \"opacity\": " << cel->opacity();
|
if (cel->opacity() != 255) {
|
||||||
|
os << ", \"opacity\": " << cel->opacity();
|
||||||
|
}
|
||||||
if (cel->zIndex() != 0) {
|
if (cel->zIndex() != 0) {
|
||||||
os << ", \"zIndex\": " << cel->zIndex();
|
os << ", \"zIndex\": " << cel->zIndex();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user