Changed CameraMovement.fit_to_frame() to get a Vector2 as an argument for the canvas size

This fixes the issue when importing an image, not as a new frame, that did not get fitted to frame.
This commit is contained in:
OverloadedOrama 2020-05-11 16:33:44 +03:00
parent 62a695366a
commit 358a95f709
3 changed files with 12 additions and 12 deletions

View file

@ -785,7 +785,7 @@ func _on_RightZoomModeOptions_item_selected(ID : int) -> void:
func _on_FitToFrameButton_pressed() -> void:
Global.camera.fit_to_frame()
Global.camera.fit_to_frame(Global.canvas.size)
func _on_100ZoomButton_pressed() -> void: