Removed unnecessary globals

This commit is contained in:
2024-02-10 19:21:10 +01:00
parent 124902f39f
commit 32dbaa3673
3 changed files with 7 additions and 11 deletions

View File

@ -3,7 +3,7 @@ extends OptionButton
var fsrQuality: Array[float] = [0.50, 0.59, 0.67, 0.77, 1.0]
func _ready():
var viewport_scale := Global.viewport.scaling_3d_scale
var viewport_scale := get_viewport().scaling_3d_scale
var closest := -1
var closest_diff := 999.0
@ -17,4 +17,4 @@ func _ready():
selected = closest
func on_item_selected(index):
Global.viewport.scaling_3d_scale = fsrQuality[index]
get_viewport().scaling_3d_scale = fsrQuality[index]