Skip to content

Commit a54fffd

Browse files
authored
Access NoiseType on FastNoiseLite class
Fixes 'Identifier "NoiseType" not declared in the current scope' when following example.
1 parent 752e65a commit a54fffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/math/random_number_generation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ terrain. Godot provides :ref:`class_fastnoiselite` for this, which supports
445445
func _ready():
446446
randomize()
447447
# Configure the FastNoiseLite instance.
448-
_noise.noise_type = NoiseType.TYPE_SIMPLEX_SMOOTH
448+
_noise.noise_type = FastNoiseLite.NoiseType.TYPE_SIMPLEX_SMOOTH
449449
_noise.seed = randi()
450450
_noise.fractal_octaves = 4
451451
_noise.frequency = 1.0 / 20.0

0 commit comments

Comments
 (0)