mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-27 15:35:21 +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 << "{ \"frame\": " << cel->frame();
|
||||
os << ", \"opacity\": " << cel->opacity();
|
||||
if (cel->opacity() != 255) {
|
||||
os << ", \"opacity\": " << cel->opacity();
|
||||
}
|
||||
if (cel->zIndex() != 0) {
|
||||
os << ", \"zIndex\": " << cel->zIndex();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user