Pārlūkot izejas kodu

Merge pull request #7455 from anthonygood/patch-1

Fix noise example code (`Identifier "NoiseType" not declared in the current scope.`)
Matthew 2 gadi atpakaļ
vecāks
revīzija
a736e3b9cb
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      tutorials/math/random_number_generation.rst

+ 1 - 1
tutorials/math/random_number_generation.rst

@@ -445,7 +445,7 @@ terrain. Godot provides :ref:`class_fastnoiselite` for this, which supports
     func _ready():
     func _ready():
         randomize()
         randomize()
         # Configure the FastNoiseLite instance.
         # Configure the FastNoiseLite instance.
-        _noise.noise_type = NoiseType.TYPE_SIMPLEX_SMOOTH
+        _noise.noise_type = FastNoiseLite.NoiseType.TYPE_SIMPLEX_SMOOTH
         _noise.seed = randi()
         _noise.seed = randi()
         _noise.fractal_octaves = 4
         _noise.fractal_octaves = 4
         _noise.frequency = 1.0 / 20.0
         _noise.frequency = 1.0 / 20.0