*/}}
Browse Source

Fix transparent layer missing on save.

YimingWu 1 year ago
parent
commit
fa3b760c02
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ouroperations.c

+ 1 - 1
ouroperations.c

@@ -758,7 +758,7 @@ void our_CanvasFillImageBufferBackground(){
     }
 }
 void our_LayerToImageBuffer(OurLayer* ol, int composite){
-    if(ol->Hide || ol->Transparency==1) return;
+    if(composite && (ol->Hide || ol->Transparency==1)) return;
     for(int row=0;row<OUR_TILES_PER_ROW;row++){ if(!ol->TexTiles[row]) continue;
         for(int col=0;col<OUR_TILES_PER_ROW;col++){ if(!ol->TexTiles[row][col]) continue;
             int sx=ol->TexTiles[row][col]->l+OUR_TILE_SEAM,sy=ol->TexTiles[row][col]->b+OUR_TILE_SEAM;