mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-17 13:20:45 +00:00
Extras are drawn only when extras-opacity > 0.
This commit is contained in:
parent
8720d156e5
commit
dd2c8d1730
@ -475,18 +475,19 @@ void RenderEngine::renderLayer(Sprite *sprite, Layer *layer, Image *image,
|
||||
// Draw extras
|
||||
if (layer == sprite->getCurrentLayer() && sprite->getExtras() != NULL) {
|
||||
int opacity = sprite->getExtrasOpacity();
|
||||
|
||||
if (zoom == 0) {
|
||||
image_merge(image, sprite->getExtras(),
|
||||
-source_x,
|
||||
-source_y,
|
||||
opacity, BLEND_MODE_NORMAL);
|
||||
}
|
||||
else {
|
||||
(*zoomed_func)(image, sprite->getExtras(),
|
||||
-source_x,
|
||||
-source_y,
|
||||
opacity, BLEND_MODE_NORMAL, zoom);
|
||||
if (opacity > 0) {
|
||||
if (zoom == 0) {
|
||||
image_merge(image, sprite->getExtras(),
|
||||
-source_x,
|
||||
-source_y,
|
||||
opacity, BLEND_MODE_NORMAL);
|
||||
}
|
||||
else {
|
||||
(*zoomed_func)(image, sprite->getExtras(),
|
||||
-source_x,
|
||||
-source_y,
|
||||
opacity, BLEND_MODE_NORMAL, zoom);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user