mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 13:21:34 +00:00
Fix LayerImage::getMemSize
Now it doesn't count more than once the memory used by the layer's cels
This commit is contained in:
parent
9560650867
commit
6f9b10f9fb
@ -253,10 +253,11 @@ int LayerImage::getMemSize() const
|
||||
|
||||
for (; it != end; ++it) {
|
||||
const Cel* cel = *it;
|
||||
size += cel->getMemSize();
|
||||
|
||||
const Image* image = cel->image();
|
||||
size += image->getMemSize();
|
||||
if (cel->link()) // Skip link
|
||||
continue;
|
||||
|
||||
size += cel->getMemSize();
|
||||
}
|
||||
|
||||
return size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user