From a54fffd60a18a01df1e04eafa7271bfc2d18b66c Mon Sep 17 00:00:00 2001 From: Anthony Good Date: Thu, 1 Jun 2023 20:44:17 +0100 Subject: [PATCH] Access NoiseType on FastNoiseLite class Fixes 'Identifier "NoiseType" not declared in the current scope' when following example. --- tutorials/math/random_number_generation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/math/random_number_generation.rst b/tutorials/math/random_number_generation.rst index c31a1d5c079..e11b1f40d12 100644 --- a/tutorials/math/random_number_generation.rst +++ b/tutorials/math/random_number_generation.rst @@ -445,7 +445,7 @@ terrain. Godot provides :ref:`class_fastnoiselite` for this, which supports func _ready(): randomize() # Configure the FastNoiseLite instance. - _noise.noise_type = NoiseType.TYPE_SIMPLEX_SMOOTH + _noise.noise_type = FastNoiseLite.NoiseType.TYPE_SIMPLEX_SMOOTH _noise.seed = randi() _noise.fractal_octaves = 4 _noise.frequency = 1.0 / 20.0