Skip to content

Commit

Permalink
ignore warning enum cast on SettingsManager
Browse files Browse the repository at this point in the history
  • Loading branch information
ninetailsrabbit committed Oct 21, 2024
1 parent 1ee8019 commit ba3bcec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/persistence/settings/settings_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ func apply_graphics_on_directional_light(directional_light: DirectionalLight3D,
directional_light.shadow_bias = 0.005


@warning_ignore("int_as_enum_without_cast")
func apply_graphics_on_environment(world_environment: WorldEnvironment, quality_preset: HardwareDetector.QualityPreset = HardwareDetector.QualityPreset.Medium) -> void:
var viewport: Viewport = world_environment.get_viewport()
var preset: HardwareDetector.GraphicQualityPreset = HardwareDetector.graphics_quality_presets[quality_preset]
Expand Down

0 comments on commit ba3bcec

Please sign in to comment.