mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 19:34:43 -04:00
Retain the zoom factor when adding a new frame
Also, when importing a PNG, the window title changes.
This commit is contained in:
parent
31a67fcbc2
commit
704dcf90c0
4 changed files with 104 additions and 99 deletions
|
@ -53,7 +53,9 @@ func _ready() -> void:
|
|||
frame_texture_rect = Global.find_node_by_name(frame_button, "FrameTexture")
|
||||
frame_texture_rect.texture = layers[0][1] #ImageTexture current_layer_index
|
||||
|
||||
camera_zoom()
|
||||
#Only handle camera zoom settings & offset on the first frame
|
||||
if Global.canvases[0] == self:
|
||||
camera_zoom()
|
||||
|
||||
func camera_zoom() -> void:
|
||||
#Set camera zoom based on the sprite size
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue