[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2715] trunk/py/scripts/addons: Fix #29488: two addons broken after recent noise module change, patch by Patrick Zulke.
Brecht Van Lommel
brechtvanlommel at pandora.be
Sat Dec 3 21:45:42 CET 2011
Revision: 2715
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2715
Author: blendix
Date: 2011-12-03 20:45:35 +0000 (Sat, 03 Dec 2011)
Log Message:
-----------
Fix #29488: two addons broken after recent noise module change, patch by Patrick Zulke.
Modified Paths:
--------------
trunk/py/scripts/addons/add_curve_aceous_galore.py
trunk/py/scripts/addons/add_mesh_ant_landscape.py
Modified: trunk/py/scripts/addons/add_curve_aceous_galore.py
===================================================================
--- trunk/py/scripts/addons/add_curve_aceous_galore.py 2011-12-03 14:00:09 UTC (rev 2714)
+++ trunk/py/scripts/addons/add_curve_aceous_galore.py 2011-12-03 20:45:35 UTC (rev 2715)
@@ -38,7 +38,7 @@
from bpy.props import *
from mathutils import *
from math import *
-import noise as Noise
+import mathutils.noise as Noise
###------------------------------------------------------------
#### Some functions to use with others:
###------------------------------------------------------------
Modified: trunk/py/scripts/addons/add_mesh_ant_landscape.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_ant_landscape.py 2011-12-03 14:00:09 UTC (rev 2714)
+++ trunk/py/scripts/addons/add_mesh_ant_landscape.py 2011-12-03 20:45:35 UTC (rev 2715)
@@ -73,7 +73,7 @@
import bpy
from bpy.props import *
from mathutils import *
-from noise import *
+from mathutils.noise import *
from math import *
@@ -318,7 +318,7 @@
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 )
More information about the Bf-extensions-cvs
mailing list