Skip to content

Commit a736e3b

Browse files
authored
Merge pull request godotengine#7455 from anthonygood/patch-1
Fix noise example code (`Identifier "NoiseType" not declared in the current scope.`)
2 parents 752e65a + a54fffd commit a736e3b

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)