Removed unnecessary globals
This commit is contained in:
@ -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]
|
Reference in New Issue
Block a user