mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-05-06 03:54:50 -04:00
Canvas background gets resized on frame_changed
In case frames have different sizes. Also solved issue when opening files and they had a different size than the currently selected image.
This commit is contained in:
parent
da62d54a62
commit
c737ff3589
2 changed files with 3 additions and 0 deletions
|
@ -660,6 +660,8 @@ func frame_changed(value : int) -> void:
|
|||
if current_frame < layers[current_layer][3].get_child_count():
|
||||
layers[current_layer][3].get_child(current_frame).pressed = true
|
||||
|
||||
Global.transparent_checker._ready() # To update the rect size
|
||||
|
||||
|
||||
func layer_changed(value : int) -> void:
|
||||
current_layer = value
|
||||
|
|
|
@ -2,6 +2,7 @@ extends Node
|
|||
|
||||
var current_save_path := ""
|
||||
|
||||
|
||||
func open_pxo_file(path : String) -> void:
|
||||
var file := File.new()
|
||||
var err := file.open_compressed(path, File.READ, File.COMPRESSION_ZSTD)
|
||||
|
|
Loading…
Add table
Reference in a new issue