Improve variable naming in Filesystem.gd

This commit is contained in:
ChaoticByte 2025-10-10 22:33:29 +02:00
parent 578ecb1d01
commit b7e2c9dfa2
Signed by: ChaoticByte
SSH key fingerprint: SHA256:bHr1NPU+JZFLUbsTl2/mfa6U+6dcM7VjKohzXnshfFY
4 changed files with 19 additions and 20 deletions

View file

@ -25,8 +25,8 @@ func _process(_delta: float) -> void:
old_zoom = self.zoom
func fit_image():
if Filesystem.original_image != null:
var image_size = Filesystem.original_image.get_size()
if Filesystem.input_image_texture != null:
var image_size = Filesystem.input_image_texture.get_size()
var viewport_size = get_viewport_rect().size
var zoomf = 1.0
if viewport_size.x / image_size.x * image_size.y > viewport_size.y: