mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-20 12:33:14 +00:00
Fixed exporting PNGs
This commit is contained in:
parent
2a5dfa7ea2
commit
9812a34b8b
2 changed files with 6 additions and 2 deletions
|
@ -86,6 +86,9 @@ margin_bottom = 620.0
|
|||
rect_min_size = Vector2( 0, 200 )
|
||||
size_flags_horizontal = 3
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VSeparator" type="VSeparator" parent="."]
|
||||
anchor_bottom = 1.0
|
||||
|
@ -181,6 +184,7 @@ texture_hover = ExtResource( 16 )
|
|||
texture_disabled = ExtResource( 17 )
|
||||
|
||||
[node name="AnimationTags" type="VBoxContainer" parent="AnimationContainer/TimelineContainer/LayerButtons"]
|
||||
visible = false
|
||||
margin_left = 216.0
|
||||
margin_right = 326.0
|
||||
margin_bottom = 32.0
|
||||
|
|
|
@ -77,7 +77,7 @@ func save_sprite(canvas : Canvas, path : String) -> void:
|
|||
for layer in canvas.layers:
|
||||
var img : Image = layer[0]
|
||||
img.lock()
|
||||
if layer[4] < 1: # If we have layer transparency
|
||||
if layer[2] < 1: # If we have layer transparency
|
||||
for xx in img.get_size().x:
|
||||
for yy in img.get_size().y:
|
||||
var pixel_color := img.get_pixel(xx, yy)
|
||||
|
@ -132,7 +132,7 @@ func save_spritesheet() -> void:
|
|||
for layer in canvas.layers:
|
||||
var img : Image = layer[0]
|
||||
img.lock()
|
||||
if layer[4] < 1: # If we have layer transparency
|
||||
if layer[2] < 1: # If we have layer transparency
|
||||
for xx in img.get_size().x:
|
||||
for yy in img.get_size().y:
|
||||
var pixel_color := img.get_pixel(xx, yy)
|
||||
|
|
Loading…
Add table
Reference in a new issue