Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-12-04 00:45:35 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-12-04 00:45:35 +0400
commit56b9a3e2ad2592000cce7c8af6e34e1d3124ec69 (patch)
treecc6ba81966c52c7bfcd6647a141f9664b4ea55a5 /add_mesh_ant_landscape.py
parentac76a43f80fa313dd8137b5e7760100af8148c09 (diff)
Fix #29488: two addons broken after recent noise module change, patch by Patrick Zulke.
Diffstat (limited to 'add_mesh_ant_landscape.py')
-rw-r--r--add_mesh_ant_landscape.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/add_mesh_ant_landscape.py b/add_mesh_ant_landscape.py
index b31d8234..89505482 100644
--- a/add_mesh_ant_landscape.py
+++ b/add_mesh_ant_landscape.py
@@ -73,7 +73,7 @@ Strata type: Strata types, Smooth, Sharp-sub, Sharp-add
import bpy
from bpy.props import *
from mathutils import *
-from noise import *
+from mathutils.noise import *
from math import *
@@ -318,7 +318,7 @@ def landscape_gen(x,y,z,falloffsize,options=[0,1.0,1, 0,0,1.0,0,6,1.0,2.0,1.0,2.
elif ntype == 3: value = hetero_terrain( ncoords, dimension, lacunarity, depth, offset, nbasis ) * 0.25
elif ntype == 4: value = fractal( ncoords, dimension, lacunarity, depth, nbasis )
elif ntype == 5: value = turbulence_vector( ncoords, depth, hardnoise, nbasis )[0]
- elif ntype == 6: value = vl_vector( ncoords, distortion, nbasis, vlbasis ) + 0.5
+ elif ntype == 6: value = variable_lacunarity( ncoords, distortion, nbasis, vlbasis ) + 0.5
elif ntype == 7: value = marble_noise( x*2.0/falloffsize,y*2.0/falloffsize,z*2/falloffsize, origin, nsize, marbleshape, marblebias, marblesharpnes, distortion, depth, hardnoise, nbasis )
elif ntype == 8: value = shattered_hterrain( ncoords[0], ncoords[1], ncoords[2], dimension, lacunarity, depth, offset, distortion, nbasis )
elif ntype == 9: value = strata_hterrain( ncoords[0], ncoords[1], ncoords[2], dimension, lacunarity, depth, offset, distortion, nbasis )