Retain the zoom factor when adding a new frame

Also, when importing a PNG, the window title changes.
This commit is contained in:
OverloadedOrama 2019-12-09 01:39:59 +02:00
parent 31a67fcbc2
commit 704dcf90c0
4 changed files with 104 additions and 99 deletions

View file

@ -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